minor changes - invert display due to current hardware layout mistake
This commit is contained in:
parent
6e29da89b5
commit
245cbc2dea
|
|
@ -32,7 +32,7 @@ void Display::begin()
|
||||||
{
|
{
|
||||||
dlog.error(TAG, F("display.init() failed!"));
|
dlog.error(TAG, F("display.init() failed!"));
|
||||||
}
|
}
|
||||||
_dsp.flipScreenVertically();
|
//_dsp.flipScreenVertically();
|
||||||
font(ArialMT_Plain_10);
|
font(ArialMT_Plain_10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,12 +61,12 @@ void setup()
|
||||||
//
|
//
|
||||||
// Setup DLog with Serial1, set the pre function to add the date/time
|
// Setup DLog with Serial1, set the pre function to add the date/time
|
||||||
//
|
//
|
||||||
Serial1.begin(115200);
|
Serial1.begin(76800);
|
||||||
dlog.begin(new DLogPrintWriter(Serial1));
|
dlog.begin(new DLogPrintWriter(Serial1));
|
||||||
dlog.setPreFunc(&logTimeFirst);
|
dlog.setPreFunc(&logTimeFirst);
|
||||||
|
//dlog.setLevel("GPS", DLogLevel::DLOG_LEVEL_DEBUG);
|
||||||
|
|
||||||
dlog.info(SETUP_TAG, F("Startup!"));
|
dlog.info(SETUP_TAG, F("Startup!"));
|
||||||
|
|
||||||
dlog.info(SETUP_TAG, F("initializing display"));
|
dlog.info(SETUP_TAG, F("initializing display"));
|
||||||
display.begin();
|
display.begin();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
// pin definitions
|
// pin definitions
|
||||||
#define SYNC_PIN 14 // (GPIO14) pin tied to 1hz square wave from GPS
|
#define SYNC_PIN 12 // (GPIO12) pin tied to 1hz square wave from GPS
|
||||||
#define SDA_PIN 4
|
#define SDA_PIN 4
|
||||||
#define SCL_PIN 5
|
#define SCL_PIN 5
|
||||||
|
|
||||||
|
|
|
||||||
9
GPS.cpp
9
GPS.cpp
|
|
@ -207,12 +207,17 @@ void ICACHE_RAM_ATTR GPS::timeout()
|
||||||
*/
|
*/
|
||||||
void ICACHE_RAM_ATTR GPS::invalidate(const char* fmt, ...)
|
void ICACHE_RAM_ATTR GPS::invalidate(const char* fmt, ...)
|
||||||
{
|
{
|
||||||
|
//
|
||||||
|
// only update the reason if there is not one already
|
||||||
|
//
|
||||||
|
if (_reason[0] == '\0')
|
||||||
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
vsnprintf(_reason, REASON_SIZE-1, fmt, ap);
|
vsnprintf(_reason, REASON_SIZE-1, fmt, ap);
|
||||||
_reason[REASON_SIZE-1] = '\0';
|
_reason[REASON_SIZE-1] = '\0';
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
}
|
||||||
_valid = false;
|
_valid = false;
|
||||||
_gps_valid = false;
|
_gps_valid = false;
|
||||||
_last_micros = 0;
|
_last_micros = 0;
|
||||||
|
|
@ -228,6 +233,7 @@ void ICACHE_RAM_ATTR GPS::pps()
|
||||||
uint32_t cur_micros = micros();
|
uint32_t cur_micros = micros();
|
||||||
(void)cur_micros;
|
(void)cur_micros;
|
||||||
|
|
||||||
|
#if 0
|
||||||
//
|
//
|
||||||
// don't trust PPS if GPS is not valid.
|
// don't trust PPS if GPS is not valid.
|
||||||
//
|
//
|
||||||
|
|
@ -236,6 +242,7 @@ void ICACHE_RAM_ATTR GPS::pps()
|
||||||
PPS_TIMING_PIN_OFF();
|
PPS_TIMING_PIN_OFF();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// increment seconds
|
// increment seconds
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user