summaryrefslogtreecommitdiff
path: root/apps/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/misc.c')
-rw-r--r--apps/misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index fc84386d56..ced0668ae6 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -16,6 +16,7 @@
16 * KIND, either express or implied. 16 * KIND, either express or implied.
17 * 17 *
18 ****************************************************************************/ 18 ****************************************************************************/
19#include <stdlib.h>
19#include <ctype.h> 20#include <ctype.h>
20#include "lang.h" 21#include "lang.h"
21#include "string.h" 22#include "string.h"
@@ -206,7 +207,9 @@ bool settings_parseline(char* line, char** name, char** value)
206 207
207bool clean_shutdown(void) 208bool clean_shutdown(void)
208{ 209{
209#ifndef SIMULATOR 210#ifdef SIMULATOR
211 exit(0);
212#else
210 if(!charger_inserted()) 213 if(!charger_inserted())
211 { 214 {
212 lcd_clear_display(); 215 lcd_clear_display();