Fix sequence point warning in LGMonitorController.cpp
This commit is contained in:
parent
e33dc2290b
commit
a367c0023f
1 changed files with 3 additions and 1 deletions
|
|
@ -92,7 +92,9 @@ void LGMonitorController::SetDirect(const std::vector<RGBColor> colors)
|
|||
data[offset++] = RGBGetBValue(color);
|
||||
}
|
||||
|
||||
data[offset] = crc(data, 0, offset++);
|
||||
data[offset] = crc(data, 0, offset);
|
||||
offset++;
|
||||
|
||||
data[offset++] = LG_MONITOR_END_CMD_1;
|
||||
data[offset] = LG_MONITOR_END_CMD_2;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue