diff options
| -rw-r--r-- | firmware/target/arm/as3525/debug-as3525.c | 2 | ||||
| -rw-r--r-- | firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/debug-as3525.c b/firmware/target/arm/as3525/debug-as3525.c index a70a07b..2ad2e11 100644 --- a/firmware/target/arm/as3525/debug-as3525.c +++ b/firmware/target/arm/as3525/debug-as3525.c @@ -34,7 +34,7 @@ /* FIXME: target tree is including ./debug-target.h rather than the one in * sansa-fuze/, even though deps contains the correct one * if I put the below into a sansa-fuze/debug-target.h, it doesn't work*/ -#ifdef SANSA_FUZE +#if defined(SANSA_FUZE) && defined(SANSA_E200V2) #define DEBUG_DBOP short button_dbop_data(void); #endif diff --git a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c index 9a8b58f..5edb31b 100644 --- a/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c +++ b/firmware/target/arm/as3525/sansa-e200v2/button-e200v2.c @@ -208,6 +208,11 @@ static short read_dbop(void) return _dbop_din; } +short button_dbop_data(void) +{ + return _dbop_din; +} + /* * Get button pressed from hardware */ |