0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

fix compile warning

This commit is contained in:
OneOfEleven
2023-11-03 19:51:27 +00:00
parent e2e030aed4
commit fca972a2f2
10 changed files with 105 additions and 28 deletions

View File

@ -185,7 +185,7 @@ uint16_t BK1080_ReadRegister(BK1080_register_t Register)
I2C_Start();
I2C_Write(0x80);
I2C_Write((Register << 1) | I2C_READ);
I2C_ReadBuffer(Value, sizeof(Value));
I2C_ReadBuffer(Value, sizeof(Value), false);
I2C_Stop();
return (Value[0] << 8) | Value[1];
}