From dc36fedf56ecc011e34b4db59316e54cd3ccd121 Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 13 Oct 2011 20:03:11 +0200 Subject: I2C _SEND_BYTE -> _SEND --- liboctopus/octopus.c | 4 ++-- 1 file 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; -- cgit v1.2.1