altos: Add bit-bang i2c driver
[fw/altos] / src / kernel / ao_send_packet.c
index 3206b2d6d1cd4f2ad4f0fb8fa0c6a161cb454d66..ee4685998215a7899f123caf2780abc88ebdc00a 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #include "ao.h"
+#include "ao_send_packet.h"
 
 #define AO_MAX_SEND    128
 
@@ -29,8 +30,7 @@ ao_send_packet(void)
        uint8_t b;
        uint8_t i;
 
-       ao_cmd_hex();
-       count = ao_cmd_lex_i;
+       count = ao_cmd_hex();
        if (ao_cmd_status != ao_cmd_success)
                return;
        if (count > AO_MAX_SEND - 2) {