diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/pcf50605.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
91 | int pcf50605_write_multiple(int address, const unsigned char* buf, int count) | 91 | int pcf50605_write_multiple(int address, const unsigned char* buf, int count) |
92 | { | 92 | { |
93 | int i; | 93 | int i; |
94 | |||
95 | i2c_lock(); | ||
96 | |||
94 | for (i = 0; i < count; i++) | 97 | for (i = 0; i < count; i++) |
95 | pp_i2c_send(0x8, address + i, buf[i]); | 98 | pp_i2c_send(0x8, address + i, buf[i]); |
99 | |||
100 | i2c_unlock(); | ||
101 | |||
96 | return 0; | 102 | return 0; |
97 | } | 103 | } |
98 | 104 | ||