RAD-A2B: Fix RADA2BSettings::getChannelSize function

pull/64/head
Yasser Yassine 2024-01-23 23:18:01 +00:00
parent 1dfed4c9c4
commit 3264a1ecbe
1 changed files with 3 additions and 3 deletions

View File

@ -84,8 +84,8 @@ public:
}; };
enum class ChannelSize : uint8_t { enum class ChannelSize : uint8_t {
chSize16 = 0, chSize32 = 0,
chSize32 = 1 chSize16 = 1
}; };
enum class RADA2BDevice : uint8_t { enum class RADA2BDevice : uint8_t {
@ -148,7 +148,7 @@ public:
auto cfg = getStructurePointer<rada2b_settings_t>(); auto cfg = getStructurePointer<rada2b_settings_t>();
auto &deviceSettings = device == RADA2BDevice::Monitor ? cfg->a2b_monitor : cfg->a2b_node; auto &deviceSettings = device == RADA2BDevice::Monitor ? cfg->a2b_monitor : cfg->a2b_node;
return static_cast<ChannelSize>(~(deviceSettings.flags & a2bSettingsFlag16bit)); return static_cast<ChannelSize>(deviceSettings.flags & a2bSettingsFlag16bit);
} }
uint8_t getChannelOffset(RADA2BDevice device, A2BMessage::A2BDirection dir) const { uint8_t getChannelOffset(RADA2BDevice device, A2BMessage::A2BDirection dir) const {