From 5fe9dd5a5036e528d6180ef629d38d454e4744a3 Mon Sep 17 00:00:00 2001 From: Arksine Date: Thu, 9 Jan 2020 19:24:51 -0500 Subject: avr: implement i2c_read Signed-off-by: Eric Callahan --- src/i2ccmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/i2ccmds.c') diff --git a/src/i2ccmds.c b/src/i2ccmds.c index d518c666..388af6ed 100644 --- a/src/i2ccmds.c +++ b/src/i2ccmds.c @@ -42,7 +42,7 @@ command_i2c_read(uint32_t * args) struct i2cdev_s *i2c = oid_lookup(oid, command_config_i2c); uint8_t reg_len = args[1]; uint8_t *reg = (void*)(size_t)args[2]; - uint32_t data_len = args[3]; + uint8_t data_len = args[3]; uint8_t receive_array[data_len]; uint8_t *data = (void*)(size_t)receive_array; i2c_read(i2c->i2c_config, reg_len, reg, data_len, data); -- cgit v1.2.3-70-g09d2