diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/settings.c b/apps/settings.c index abf152fdf2..f5f46225d2 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -93,14 +93,14 @@ struct bit_entry | |||
93 | /* how many bits within the bitfield (1-32), MSB set if value is signed */ | 93 | /* how many bits within the bitfield (1-32), MSB set if value is signed */ |
94 | unsigned char bit_size; /* min 6+1 bit */ | 94 | unsigned char bit_size; /* min 6+1 bit */ |
95 | /* how many bytes in the global_settings struct (1,2,4) */ | 95 | /* how many bytes in the global_settings struct (1,2,4) */ |
96 | unsigned char byte_size; /* min 2 bits */ | 96 | unsigned char byte_size; /* min 3 bits */ |
97 | /* store position in global_settings struct */ | 97 | /* store position in global_settings struct */ |
98 | short settings_offset; /* min 9 bit, better 10 */ | 98 | short settings_offset; /* min 9 bit, better 10 */ |
99 | /* default value */ | 99 | /* default value */ |
100 | int default_val; /* min 15 bit */ | 100 | int default_val; /* min 15 bit */ |
101 | /* variable name in a .cfg file, NULL if not to be saved */ | 101 | /* variable name in a .cfg file, NULL if not to be saved */ |
102 | const char* cfg_name; | 102 | const char* cfg_name; |
103 | /* set of values, or NULL for a numerical value */ | 103 | /* set of values, or NULL for a numerical value */ |
104 | const char* cfg_val; | 104 | const char* cfg_val; |
105 | }; | 105 | }; |
106 | 106 | ||
@@ -1227,9 +1227,6 @@ bool settings_save_config(void) | |||
1227 | /* allow user to modify filename */ | 1227 | /* allow user to modify filename */ |
1228 | while (!done) { | 1228 | while (!done) { |
1229 | if (!kbd_input(filename, sizeof filename)) { | 1229 | if (!kbd_input(filename, sizeof filename)) { |
1230 | #ifdef WIN32 /* test hack !!! */ | ||
1231 | strcpy(filename, "C:/test.cfg"); | ||
1232 | #endif | ||
1233 | fd = creat(filename,0); | 1230 | fd = creat(filename,0); |
1234 | if (fd < 0) { | 1231 | if (fd < 0) { |
1235 | lcd_clear_display(); | 1232 | lcd_clear_display(); |