Index: sources/device/DeviceModels.h =================================================================== diff -u -r23eda7b49841f242485b70d0a96f4bdde50f71bc -rd0c1c6aa5856a7acbca29a4c5435cc20db3ea383 --- sources/device/DeviceModels.h (.../DeviceModels.h) (revision 23eda7b49841f242485b70d0a96f4bdde50f71bc) +++ sources/device/DeviceModels.h (.../DeviceModels.h) (revision d0c1c6aa5856a7acbca29a4c5435cc20db3ea383) @@ -89,7 +89,7 @@ // On the CANBus it was separated since the type of data in send and receive was totally different. // But here it's the same. // TODO: improve later - this has to be match with HW2UI in response - QMap UI2HW = { // has to map to keep the order + QMap UI2HW = { // the mapping is not linear so has to be mapped to keep the order { 20, 1}, { 40, 3}, { 60, 5}, @@ -124,7 +124,7 @@ */ class MDeviceBrightnessResponse : public MDeviceResponseBase { // TODO: improve later - this has to be match with UI2HW in request - QMap HW2UI = { // has to map to keep the order + QMap HW2UI = { // the mapping is not linear so has to be mapped to keep the order { 1, 20}, { 3, 40}, { 5, 60},