Rev 406 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 406 | Rev 411 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | #include "menu.h" |
12 | #include "menu.h" |
13 | #include "printf_P.h" |
13 | #include "printf_P.h" |
14 | #include "analog.h" |
14 | #include "analog.h" |
15 | #include "gps.h" |
15 | #include "gps.h" |
16 | #include "button.h" |
16 | #include "button.h" |
17 | #include "logging.h" |
17 | //#include "logging.h" |
18 | #include "settings.h" |
18 | #include "settings.h" |
Line 19... | Line 19... | ||
19 | 19 | ||
20 | #define FOLLOWME_INTERVAL 1000 // 1 second update |
20 | #define FOLLOWME_INTERVAL 1000 // 1 second update |
Line 61... | Line 61... | ||
61 | ADC_Init(); |
61 | ADC_Init(); |
62 | Button_Init(); |
62 | Button_Init(); |
63 | // enable interrupts global |
63 | // enable interrupts global |
64 | sei(); |
64 | sei(); |
Line 65... | Line -... | ||
65 | - | ||
66 | Fat16_Init(); |
- | |
67 | 65 | ||
68 | LEDRED_OFF; |
66 | LEDRED_OFF; |
Line 69... | Line 67... | ||
69 | LEDGRN_ON; |
67 | LEDGRN_ON; |
70 | 68 | ||
Line 71... | Line 69... | ||
71 | // try to initialize the FAT 16 filesystem on the SD-Card |
69 | // try to initialize the FAT 16 filesystem on the SD-Card |
72 | Fat16_Init(); |
70 | Fat16_Init(); |
73 | 71 | ||
74 | // initialize the settings |
72 | // initialize the settings |
Line 75... | Line 73... | ||
75 | Settings_Init(); |
73 | Settings_Init(); |
76 | // initialize logging (needs settings) |
74 | // initialize logging (needs settings) |
77 | Logging_Init(); |
75 | //Logging_Init(); |
78 | 76 | ||
Line 207... | Line 205... | ||
207 | if(((UBat < Zellenzahl * CELLUNDERVOLTAGE)||(UBat < 74)) && (PowerOn >= 100)) |
205 | if(((UBat < Zellenzahl * CELLUNDERVOLTAGE)||(UBat < 74)) && (PowerOn >= 100)) |
208 | { // sound for low battery |
206 | { // sound for low battery |
209 | BeepModulation = 0x0300; |
207 | BeepModulation = 0x0300; |
210 | if(!BeepTime) |
208 | if(!BeepTime) |
211 | { |
209 | { |
212 | BeepTime = 6000; // 0.6 seconds |
210 | //BeepTime = 6000; // 0.6 seconds |
213 | } |
211 | } |
214 | Error |= ERROR_LOW_BAT; |
212 | Error |= ERROR_LOW_BAT; |
215 | } |
213 | } |
216 | else |
214 | else |
217 | { |
215 | { |