diff --git a/firmware/drivers/pcf50605.c b/firmware/drivers/pcf50605.c index 94d9d0882f..d34e8512c1 100644 --- a/firmware/drivers/pcf50605.c +++ b/firmware/drivers/pcf50605.c @@ -91,8 +91,14 @@ int pcf50605_write(int address, unsigned char val) int pcf50605_write_multiple(int address, const unsigned char* buf, int count) { int i; + + i2c_lock(); + for (i = 0; i < count; i++) pp_i2c_send(0x8, address + i, buf[i]); + + i2c_unlock(); + return 0; }