mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-19 00:16:59 +00:00
use proper version for board, also use a better way to flush the GPS buffer.
This commit is contained in:
parent
d66b0c0cce
commit
6466661c38
@ -1104,12 +1104,10 @@ int32_t GPS::runOnce()
|
|||||||
return (powerState == GPS_ACTIVE) ? GPS_THREAD_INTERVAL : 5000;
|
return (powerState == GPS_ACTIVE) ? GPS_THREAD_INTERVAL : 5000;
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear the GPS rx buffer as quickly as possible
|
// clear the GPS rx/tx buffer as quickly as possible
|
||||||
void GPS::clearBuffer()
|
void GPS::clearBuffer()
|
||||||
{
|
{
|
||||||
int x = _serial_gps->available();
|
_serial_gps->flush(false);
|
||||||
while (x--)
|
|
||||||
_serial_gps->read();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prepare the GPS for the cpu entering deep or light sleep, expect to be gone for at least 100s of msecs
|
/// Prepare the GPS for the cpu entering deep or light sleep, expect to be gone for at least 100s of msecs
|
||||||
|
@ -176,6 +176,8 @@
|
|||||||
#define HW_VENDOR meshtastic_HardwareModel_SEEED_XIAO_S3
|
#define HW_VENDOR meshtastic_HardwareModel_SEEED_XIAO_S3
|
||||||
#elif defined(MESH_TAB)
|
#elif defined(MESH_TAB)
|
||||||
#define HW_VENDOR meshtastic_HardwareModel_MESH_TAB
|
#define HW_VENDOR meshtastic_HardwareModel_MESH_TAB
|
||||||
|
#elif defined(T_ETH_ELITE)
|
||||||
|
#define HW_VENDOR meshtastic_HardwareModel_T_ETH_ELITE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
@ -4,7 +4,7 @@ board = esp32s3box
|
|||||||
board_check = true
|
board_check = true
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32s3_base.build_flags}
|
${esp32s3_base.build_flags}
|
||||||
-D PRIVATE_HW
|
-D T_ETH_ELITE
|
||||||
-I variants/t-eth-elite
|
-I variants/t-eth-elite
|
||||||
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
|
-DGPS_POWER_TOGGLE ; comment this line to disable triple press function on the user button to turn off gps entirely.
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
#define I2C_SDA 17 // I2C pins for this board
|
#define I2C_SDA 17 // I2C pins for this board
|
||||||
#define I2C_SCL 18
|
#define I2C_SCL 18
|
||||||
|
|
||||||
|
#define HAS_SCREEN 1 // Allow for OLED Screens on I2C Header of shield
|
||||||
|
|
||||||
#define LED_PIN 38 // If defined we will blink this LED
|
#define LED_PIN 38 // If defined we will blink this LED
|
||||||
#define BUTTON_PIN 0 // If defined, this will be used for user button presses,
|
#define BUTTON_PIN 0 // If defined, this will be used for user button presses,
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user