bdk: i2c: homogenize return values

This commit is contained in:
CTCaer
2026-02-22 02:42:53 +02:00
committed by NaGa
parent 5ecc2a8202
commit f26e9f0504
5 changed files with 28 additions and 33 deletions

View File

@@ -137,7 +137,7 @@ static void _max7762x_set_reg(u8 addr, u8 reg, u8 val)
u32 retries = 100;
while (retries)
{
if (i2c_send_byte(I2C_5, addr, reg, val))
if (!i2c_send_byte(I2C_5, addr, reg, val))
break;
usleep(50);