last changes for 2.2.0
This commit is contained in:
@@ -46,12 +46,14 @@ void Board320_240::afterSetup() {
|
|||||||
loadTestData();
|
loadTestData();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init from parent class
|
bool afterSetup = false;
|
||||||
syslog->println("BoardInterface::afterSetup");
|
|
||||||
BoardInterface::afterSetup();
|
|
||||||
|
|
||||||
// Check if bard was sleeping
|
// Check if bard was sleeping
|
||||||
if (bootCount > 1) {
|
if (bootCount > 1) {
|
||||||
|
// Init comm device
|
||||||
|
afterSetup = true;
|
||||||
|
BoardInterface::afterSetup();
|
||||||
|
// Wake or continue with sleeping
|
||||||
afterSleep();
|
afterSleep();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -115,6 +117,11 @@ void Board320_240::afterSetup() {
|
|||||||
if (liveData->settings.gprsHwSerialPort <= 2) {
|
if (liveData->settings.gprsHwSerialPort <= 2) {
|
||||||
sim800lSetup();
|
sim800lSetup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Init comm device
|
||||||
|
if (!afterSetup) {
|
||||||
|
BoardInterface::afterSetup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1543,12 +1550,10 @@ bool Board320_240::sdcardMount() {
|
|||||||
while (1) {
|
while (1) {
|
||||||
syslog->print("Initializing SD card...");
|
syslog->print("Initializing SD card...");
|
||||||
|
|
||||||
#ifdef BOARD_TTGO_T4
|
/* syslog->print(" TTGO-T4 ");
|
||||||
syslog->print(" TTGO-T4 ");
|
|
||||||
SPIClass * hspi = new SPIClass(HSPI);
|
SPIClass * hspi = new SPIClass(HSPI);
|
||||||
spiSD.begin(pinSdcardSclk, pinSdcardMiso, pinSdcardMosi, pinSdcardCs); //SCK,MISO,MOSI,ss
|
spiSD.begin(pinSdcardSclk, pinSdcardMiso, pinSdcardMosi, pinSdcardCs); //SCK,MISO,MOSI,ss
|
||||||
SdState = SD.begin(pinSdcardCs, *hspi, SPI_FREQUENCY);
|
SdState = SD.begin(pinSdcardCs, *hspi, SPI_FREQUENCY);*/
|
||||||
#endif BOARD_TTGO_T4
|
|
||||||
|
|
||||||
syslog->print(" M5STACK ");
|
syslog->print(" M5STACK ");
|
||||||
SdState = SD.begin(pinSdcardCs);
|
SdState = SD.begin(pinSdcardCs);
|
||||||
|
|||||||
@@ -220,6 +220,8 @@ void BoardInterface::loadSettings() {
|
|||||||
*/
|
*/
|
||||||
void BoardInterface::afterSetup() {
|
void BoardInterface::afterSetup() {
|
||||||
|
|
||||||
|
syslog->println("BoardInterface::afterSetup");
|
||||||
|
|
||||||
// Init Comm iterface
|
// Init Comm iterface
|
||||||
syslog->print("Init communication device: ");
|
syslog->print("Init communication device: ");
|
||||||
syslog->println(liveData->settings.commType);
|
syslog->println(liveData->settings.commType);
|
||||||
|
|||||||
4
config.h
4
config.h
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
#include <BLEDevice.h>
|
#include <BLEDevice.h>
|
||||||
|
|
||||||
#define APP_VERSION "v2.2.0-dev"
|
#define APP_VERSION "v2.2.0"
|
||||||
#define APP_RELEASE_DATE "2020-12-14"
|
#define APP_RELEASE_DATE "2020-12-29"
|
||||||
|
|
||||||
// TFT COLORS FOR TTGO
|
// TFT COLORS FOR TTGO
|
||||||
#define TFT_BLACK 0x0000 /* 0, 0, 0 */
|
#define TFT_BLACK 0x0000 /* 0, 0, 0 */
|
||||||
|
|||||||
BIN
dist/m5stack_core1/evDash.ino.bin
vendored
BIN
dist/m5stack_core1/evDash.ino.bin
vendored
Binary file not shown.
BIN
dist/ttgo_t4_v13/evDash.ino.bin
vendored
BIN
dist/ttgo_t4_v13/evDash.ino.bin
vendored
Binary file not shown.
Reference in New Issue
Block a user