summaryrefslogtreecommitdiff
path: root/liboctopus
diff options
context:
space:
mode:
Diffstat (limited to 'liboctopus')
-rw-r--r--liboctopus/octopus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liboctopus/octopus.c b/liboctopus/octopus.c
index 5471d7b..9111b0d 100644
--- a/liboctopus/octopus.c
+++ b/liboctopus/octopus.c
@@ -503,7 +503,7 @@ int octopus_i2c_send_byte(struct octopus_context *octopus, char data)
char answer[3];
// cmd = cmd,len,timeout,address,data1,data2,..)
- char msg[] = {CMD_I2C_SEND_BYTE,0x01,0x00};
+ char msg[] = {CMD_I2C_SEND,0x01,0x00};
msg[2] = (char)data;
if(octopus_message(octopus,msg,3,answer,3)>0)
@@ -543,7 +543,7 @@ int octopus_i2c_receive_bytes(struct octopus_context *octopus,
return -1; // max 60 bytes
}
- char msg[64] = {CMD_I2C_RECV_BYTES,0x01,0x00};
+ char msg[64] = {CMD_I2C_RECV,0x01,0x00};
msg[1] = (char)(len+4);
msg[2] = (char)timeout;
msg[3] = (char)address;