1
0
mirror of https://github.com/MatMoul/g810-led.git synced 2024-12-23 01:06:11 +00:00

Fix make error

This commit is contained in:
MatMoul 2020-04-25 22:14:08 +02:00
parent b8f51d777a
commit 0a1cc29e8d

View File

@ -770,7 +770,7 @@ bool LedKeyboard::setOnBoardMode(OnBoardMode onBoardMode) {
byte_buffer_t data;
switch (currentDevice.model) {
case KeyboardModel::g815:
data = { 0x11, 0xff, 0x11, 0x1a, onBoardMode };
data = { 0x11, 0xff, 0x11, 0x1a, static_cast<uint8_t>(onBoardMode) };
data.resize(20, 0x00);
return sendDataInternal(data);
default: