summaryrefslogtreecommitdiff
path: root/bootloader/x1000/install.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/x1000/install.c')
-rw-r--r--bootloader/x1000/install.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/bootloader/x1000/install.c b/bootloader/x1000/install.c
index aa4fdde3b0..e4af66443b 100644
--- a/bootloader/x1000/install.c
+++ b/bootloader/x1000/install.c
@@ -25,8 +25,6 @@
25#include "installer-x1000.h" 25#include "installer-x1000.h"
26#include <stdio.h> 26#include <stdio.h>
27 27
28extern int init_disk(void);
29
30enum { 28enum {
31 INSTALL, 29 INSTALL,
32 BACKUP, 30 BACKUP,
@@ -35,7 +33,7 @@ enum {
35 33
36static void bootloader_action(int which) 34static void bootloader_action(int which)
37{ 35{
38 if(init_disk() != 0) { 36 if(check_disk(true) != DISK_PRESENT) {
39 splash2(5*HZ, "Install aborted", "Cannot access SD card"); 37 splash2(5*HZ, "Install aborted", "Cannot access SD card");
40 return; 38 return;
41 } 39 }