Rev 361 | Rev 381 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 361 | Rev 362 | ||
---|---|---|---|
Line 59... | Line 59... | ||
59 | #include <string.h> |
59 | #include <string.h> |
60 | #include "91x_lib.h" |
60 | #include "91x_lib.h" |
61 | #include "fat16.h" |
61 | #include "fat16.h" |
62 | #include "settings.h" |
62 | #include "settings.h" |
63 | #include "uart1.h" |
63 | #include "uart1.h" |
- | 64 | #include "main.h" |
|
- | 65 | ||
Line 64... | Line 66... | ||
64 | 66 | ||
65 | typedef struct |
67 | typedef struct |
66 | { |
68 | { |
67 | ParamId_t ParamId; |
69 | ParamId_t ParamId; |
Line 161... | Line 163... | ||
161 | { |
163 | { |
162 | UART1_PutString("ERROR: Opening settings file!"); |
164 | UART1_PutString("ERROR: Opening settings file!"); |
163 | return; |
165 | return; |
164 | } |
166 | } |
165 | // read all lines from file |
167 | // read all lines from file |
166 | while(fgets_(settingsline, LINE_MAX, fp) != 0) |
168 | while(fgets_(settingsline, LINE_MAX, fp) != 0 && (SD_WatchDog)) |
167 | { |
169 | { |
168 | if ( // ignorelines starting with \r,\n,' ',';','#' |
170 | if ( // ignorelines starting with \r,\n,' ',';','#' |
169 | (settingsline[0] != '\n') && |
171 | (settingsline[0] != '\n') && |
170 | (settingsline[0] != '\r') && |
172 | (settingsline[0] != '\r') && |
171 | (settingsline[0] != ' ' ) && |
173 | (settingsline[0] != ' ' ) && |