]> git.droids-corp.org - protos/imu.git/commitdiff
i2cm: send_byte should be static
authorOlivier Matz <zer0@droids-corp.org>
Thu, 26 Jun 2014 18:34:29 +0000 (20:34 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 26 Jun 2014 18:34:29 +0000 (20:34 +0200)
i2cm_sw.c
i2cm_sw.h

index 6c2534a1c03372d0ea0f0f8a30d9b38a68c9f633..e6a6748339f1e7c8baf0f33fe0bd7b14e1929bf9 100644 (file)
--- a/i2cm_sw.c
+++ b/i2cm_sw.c
@@ -112,7 +112,7 @@ void i2cm_register_event(void (*func)(i2cm_state state))
 }
 
 
-uint8_t i2cm_send_byte(uint8_t byte)
+static uint8_t i2cm_send_byte(uint8_t byte)
 {
        uint8_t mask;
        uint8_t err = 0;
index 551476700bd40a72a08d287d7c39a26e8513f080..53b716a6f7b82d5a0d6c0cb81fbca39c03bd5373 100644 (file)
--- a/i2cm_sw.h
+++ b/i2cm_sw.h
@@ -38,7 +38,6 @@ void i2cm_manage(void);
 uint8_t i2cm_get_state(void);
 uint8_t i2cm_get_received_byte(void);
 void i2cm_register_event(void (*func)(i2cm_state state));
-uint8_t i2cm_send_byte(uint8_t byte);
 uint8_t i2cm_send_start(uint8_t sla_w);
 uint8_t i2cm_send_stop(void);
 uint8_t i2cm_receive_byte(uint8_t last);