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:
@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user