diff options
-rw-r--r-- | apps/misc.c | 2 | ||||
-rw-r--r-- | firmware/drivers/button.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/misc.c b/apps/misc.c index bc2df3ab5a..055bcd2983 100644 --- a/apps/misc.c +++ b/apps/misc.c @@ -278,7 +278,7 @@ bool clean_shutdown(void) #ifdef SIMULATOR exit(0); #else -#ifndef IRIVER_H100 +#ifndef HAVE_POWEROFF_WHILE_CHARGING if(!charger_inserted()) #endif { diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index af15f1cf94..b4ab7203a3 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -127,7 +127,7 @@ static void button_tick(void) #else if (btn == BUTTON_OFF && #endif -#ifndef IRIVER_H100 +#ifndef HAVE_POWEROFF_WHILE_CHARGING !charger_inserted() && #endif repeat_count > POWEROFF_COUNT) |