freemyipod r75 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r74‎ | r75 | r76 >
Date:02:58, 10 August 2010
Author:cmwslw
Status:new
Tags:
Comment:
The accel return value should be 8 bits not 32.
Modified paths:
  • /embios/branches/4g_compat/target/ipodnano4g/accel.c (modified) (history)
  • /embios/branches/4g_compat/target/ipodnano4g/accel.h (modified) (history)

Diff [purge]

Index: embios/branches/4g_compat/target/ipodnano4g/accel.c
@@ -24,7 +24,7 @@
2525 #include "global.h"
2626 #include "i2c.h"
2727
28 -uint32_t accel_get_axis(uint8_t axis)
 28+int8_t accel_get_axis(uint8_t axis)
2929 {
3030 uint8_t address = 0x29 + 2 * axis;
3131 return i2crecvbyte(0x3a, address);
Index: embios/branches/4g_compat/target/ipodnano4g/accel.h
@@ -26,6 +26,6 @@
2727
2828 #include "global.h"
2929
30 -uint8_t accel_get_axis(uint8_t axis);
 30+int8_t accel_get_axis(uint8_t axis);
3131
3232 #endif