diff options
Diffstat (limited to 'bootloader/common.c')
-rw-r--r-- | bootloader/common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bootloader/common.c b/bootloader/common.c index 67b5816694..362c3b4d11 100644 --- a/bootloader/common.c +++ b/bootloader/common.c | |||
@@ -118,7 +118,7 @@ char *strerror(int error) | |||
118 | } | 118 | } |
119 | } | 119 | } |
120 | 120 | ||
121 | void error(int errortype, int error) | 121 | void error(int errortype, int error, bool shutdown) |
122 | { | 122 | { |
123 | switch(errortype) | 123 | switch(errortype) |
124 | { | 124 | { |
@@ -137,7 +137,8 @@ void error(int errortype, int error) | |||
137 | 137 | ||
138 | lcd_update(); | 138 | lcd_update(); |
139 | sleep(5*HZ); | 139 | sleep(5*HZ); |
140 | power_off(); | 140 | if(shutdown) |
141 | power_off(); | ||
141 | } | 142 | } |
142 | 143 | ||
143 | /* Load firmware image in a format created by tools/scramble */ | 144 | /* Load firmware image in a format created by tools/scramble */ |