trackermode corected
This commit is contained in:
parent
d66bbdbfbd
commit
c3b410abca
|
|
@ -283,9 +283,13 @@ void setup()
|
||||||
|
|
||||||
for (int i=0;i<ANGLE_AVGS;i++) {average_course[i]=0;} // set average_course to "0"
|
for (int i=0;i<ANGLE_AVGS;i++) {average_course[i]=0;} // set average_course to "0"
|
||||||
|
|
||||||
prefs.begin("nvs", false);
|
#ifndef DONT_USE_FLASH_MEMORY
|
||||||
tracker_mode = (uint8_t) prefs.getChar("tracker_mode", TRACKERMODE);
|
prefs.begin("nvs", false);
|
||||||
prefs.end();
|
tracker_mode = (uint8_t) prefs.getChar("tracker_mode", TRACKERMODE);
|
||||||
|
prefs.end();
|
||||||
|
#else
|
||||||
|
tracker_mode = TRACKERMODE;
|
||||||
|
#endif
|
||||||
|
|
||||||
//tracker_mode = current_mode;
|
//tracker_mode = current_mode;
|
||||||
/////////////////
|
/////////////////
|
||||||
|
|
@ -297,8 +301,6 @@ void setup()
|
||||||
wx = false;
|
wx = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
tracker_mode = TRACKER;
|
|
||||||
|
|
||||||
pinMode(TXLED, OUTPUT);
|
pinMode(TXLED, OUTPUT);
|
||||||
pinMode(BUTTON, INPUT);
|
pinMode(BUTTON, INPUT);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
// IF NOT CHANGED you have to go through the configuration routine at first boot up of the TTGO T-Beam
|
// IF NOT CHANGED you have to go through the configuration routine at first boot up of the TTGO T-Beam
|
||||||
|
|
||||||
// #define DONT_USE_FLASH_MEMORY // uncomment if you don't want to use Flashmemory - instead data below must be corrected
|
// #define DONT_USE_FLASH_MEMORY // uncomment if you don't want to use Flashmemory - instead data below must be corrected
|
||||||
#define TRACKERMODE 0 // preset MODE here, if flash not used >> "0"=TRACKER, "1"=WX_TRACKER, "2"=WX_MOVE, "3"=WX_FIXED
|
#define TRACKERMODE 1 // preset MODE here, if flash not used >> "0"=TRACKER, "1"=WX_TRACKER, "2"=WX_MOVE, "3"=WX_FIXED
|
||||||
#define CALLSIGN "XX9XXX-11" // enter your callsign here - less then 6 letter callsigns please add "spaces" so total length is 6 (without SSID)
|
#define CALLSIGN "XX9XXX-11" // enter your callsign here - less then 6 letter callsigns please add "spaces" so total length is 6 (without SSID)
|
||||||
#define WX_CALLSIGN "XX9XXX-11" // use same callsign but you can use different SSID
|
#define WX_CALLSIGN "XX9XXX-11" // use same callsign but you can use different SSID
|
||||||
#define LONGITUDE_PRESET "01539.85E" // please in APRS notation DDDMM.mmE or DDDMM.mmW
|
#define LONGITUDE_PRESET "01539.85E" // please in APRS notation DDDMM.mmE or DDDMM.mmW
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue