aboutsummaryrefslogtreecommitdiffstats
path: root/src/i2ccmds.c
diff options
context:
space:
mode:
authorArksine <arksine.code@gmail.com>2020-01-09 19:24:51 -0500
committerKevinOConnor <kevin@koconnor.net>2020-01-13 22:29:50 -0500
commit5fe9dd5a5036e528d6180ef629d38d454e4744a3 (patch)
tree0035f22aecab0f7e1db3968218fb306274216698 /src/i2ccmds.c
parentb28df43b26e395e2b0d81d50edbd848fc710e060 (diff)
downloadkutter-5fe9dd5a5036e528d6180ef629d38d454e4744a3.tar.gz
kutter-5fe9dd5a5036e528d6180ef629d38d454e4744a3.tar.xz
kutter-5fe9dd5a5036e528d6180ef629d38d454e4744a3.zip
avr: implement i2c_read
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'src/i2ccmds.c')
-rw-r--r--src/i2ccmds.c2
1 files changed, 1 insertions, 1 deletions
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);