summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2011-10-13 20:03:11 +0200
committerYves Fischer <yvesf-git@xapek.org>2011-10-13 20:03:11 +0200
commitdc36fedf56ecc011e34b4db59316e54cd3ccd121 (patch)
tree6534ea02041c4551b770fe425aa9283c3b648731
parentfad9dd56d73a9b9917177ecf1114dffc3052fa64 (diff)
downloadmini-octopus-dc36fedf56ecc011e34b4db59316e54cd3ccd121.tar.gz
mini-octopus-dc36fedf56ecc011e34b4db59316e54cd3ccd121.zip
I2C _SEND_BYTE -> _SEND
-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;