Refact the macro definition of GPS initialization of GPSDEFAULTD_NOT_PRESENT and added seeeed Indicator to this sequence (#5494)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
pull/5499/head
dylanli 2024-12-03 20:29:33 +08:00 zatwierdzone przez GitHub
rodzic 7ad137b56a
commit 85b2bad275
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
4 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -464,7 +464,7 @@ void NodeDB::installDefaultConfig(bool preserveKey = false)
#endif #endif
#if defined(USERPREFS_CONFIG_GPS_MODE) #if defined(USERPREFS_CONFIG_GPS_MODE)
config.position.gps_mode = USERPREFS_CONFIG_GPS_MODE; config.position.gps_mode = USERPREFS_CONFIG_GPS_MODE;
#elif !HAS_GPS || defined(T_DECK) || defined(TLORA_T3S3_EPAPER) #elif !HAS_GPS || GPS_DEFAULT_NOT_PRESENT
config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_NOT_PRESENT; config.position.gps_mode = meshtastic_Config_PositionConfig_GpsMode_NOT_PRESENT;
#elif !defined(GPS_RX_PIN) #elif !defined(GPS_RX_PIN)
if (config.position.rx_gpio == 0) if (config.position.rx_gpio == 0)

Wyświetl plik

@ -40,6 +40,7 @@
// // Buzzer // // Buzzer
// #define PIN_BUZZER 19 // #define PIN_BUZZER 19
#define GPS_DEFAULT_NOT_PRESENT 1
#define GPS_RX_PIN 20 #define GPS_RX_PIN 20
#define GPS_TX_PIN 19 #define GPS_TX_PIN 19
#define HAS_GPS 1 #define HAS_GPS 1

Wyświetl plik

@ -29,7 +29,7 @@
#define BUTTON_PIN 0 #define BUTTON_PIN 0
// #define BUTTON_NEED_PULLUP // #define BUTTON_NEED_PULLUP
#define GPS_DEFAULT_NOT_PRESENT 1
#define GPS_RX_PIN 44 #define GPS_RX_PIN 44
#define GPS_TX_PIN 43 #define GPS_TX_PIN 43

Wyświetl plik

@ -19,6 +19,7 @@
#define I2C_SCL SCL #define I2C_SCL SCL
// external qwiic connector // external qwiic connector
#define GPS_DEFAULT_NOT_PRESENT 1
#define GPS_RX_PIN 44 #define GPS_RX_PIN 44
#define GPS_TX_PIN 43 #define GPS_TX_PIN 43