|
@@ -314,18 +314,27 @@ static struct {
|
|
|
unsigned char count;
|
|
unsigned char count;
|
|
|
} error_browser;
|
|
} error_browser;
|
|
|
|
|
|
|
|
|
|
+static __flash const char error_str_temperature[] = "Czujnik temp.";
|
|
|
|
|
+static __flash const char error_str_i2c[] = "I2C";
|
|
|
|
|
+static __flash const char error_str_i2c_timeout[] = "I2C timeout";
|
|
|
|
|
+static __flash const char error_str_disk[] = "Blad karty";
|
|
|
|
|
+static __flash const char error_str_file_write[] = "Blad zapisu";
|
|
|
|
|
+static __flash const char error_str_file_sync[] = "Blad zapisu FAT";
|
|
|
|
|
+static __flash const char error_str_file_close[] = "Blad zamk.pliku";
|
|
|
|
|
+static __flash const char error_str_file_open[] = "Blad otw. pliku";
|
|
|
|
|
+
|
|
|
static __flash const struct {
|
|
static __flash const struct {
|
|
|
unsigned int flag;
|
|
unsigned int flag;
|
|
|
__flash const char *name;
|
|
__flash const char *name;
|
|
|
} error_list[] = {
|
|
} error_list[] = {
|
|
|
- {ERROR_TEMPERATURE, PSTR("Czujnik temp.")},
|
|
|
|
|
- {ERROR_I2C, PSTR("I2C")},
|
|
|
|
|
- {ERROR_I2C_TIMEOUT, PSTR("I2C timeout")},
|
|
|
|
|
- {ERROR_DISK, PSTR("Blad karty")},
|
|
|
|
|
- {ERROR_FILE_WRITE, PSTR("Blad zapisu")},
|
|
|
|
|
- {ERROR_FILE_SYNC, PSTR("Blad zapisu FAT")},
|
|
|
|
|
- {ERROR_FILE_CLOSE, PSTR("Blad zamk.pliku")},
|
|
|
|
|
- {ERROR_FILE_OPEN, PSTR("Blad otw. pliku")},
|
|
|
|
|
|
|
+ {ERROR_TEMPERATURE, error_str_temperature},
|
|
|
|
|
+ {ERROR_I2C, error_str_i2c},
|
|
|
|
|
+ {ERROR_I2C_TIMEOUT, error_str_i2c_timeout},
|
|
|
|
|
+ {ERROR_DISK, error_str_disk},
|
|
|
|
|
+ {ERROR_FILE_WRITE, error_str_file_write},
|
|
|
|
|
+ {ERROR_FILE_SYNC, error_str_file_sync},
|
|
|
|
|
+ {ERROR_FILE_CLOSE, error_str_file_close},
|
|
|
|
|
+ {ERROR_FILE_OPEN, error_str_file_open},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
void disp_func_global_error(void) {
|
|
void disp_func_global_error(void) {
|