mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 03:29:17 +00:00
Merge branch 'master' into tsl2561
This commit is contained in:
commit
0f810779dc
10
src/main.cpp
10
src/main.cpp
@ -404,6 +404,16 @@ void setup()
|
|||||||
|
|
||||||
initDeepSleep();
|
initDeepSleep();
|
||||||
|
|
||||||
|
#if defined(MODEM_POWER_EN)
|
||||||
|
pinMode(MODEM_POWER_EN, OUTPUT);
|
||||||
|
digitalWrite(MODEM_POWER_EN, LOW);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MODEM_PWRKEY)
|
||||||
|
pinMode(MODEM_PWRKEY, OUTPUT);
|
||||||
|
digitalWrite(MODEM_PWRKEY, LOW);
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(LORA_TCXO_GPIO)
|
#if defined(LORA_TCXO_GPIO)
|
||||||
pinMode(LORA_TCXO_GPIO, OUTPUT);
|
pinMode(LORA_TCXO_GPIO, OUTPUT);
|
||||||
digitalWrite(LORA_TCXO_GPIO, HIGH);
|
digitalWrite(LORA_TCXO_GPIO, HIGH);
|
||||||
|
@ -718,6 +718,13 @@ void AdminModule::handleSetConfig(const meshtastic_Config &c)
|
|||||||
requiresReboot = false;
|
requiresReboot = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(ARCH_PORTDUINO)
|
||||||
|
// If running on portduino and using SimRadio, do not require reboot
|
||||||
|
if (SimRadio::instance) {
|
||||||
|
requiresReboot = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RF95_FAN_EN
|
#ifdef RF95_FAN_EN
|
||||||
// Turn PA off if disabled by config
|
// Turn PA off if disabled by config
|
||||||
if (c.payload_variant.lora.pa_fan_disabled) {
|
if (c.payload_variant.lora.pa_fan_disabled) {
|
||||||
|
@ -92,3 +92,12 @@
|
|||||||
#define SX126X_DIO3_TCXO_VOLTAGE 2.4
|
#define SX126X_DIO3_TCXO_VOLTAGE 2.4
|
||||||
// Internally the TTGO module hooks the SX1262-DIO2 in to control the TX/RX switch (which is the default for the sx1262interface
|
// Internally the TTGO module hooks the SX1262-DIO2 in to control the TX/RX switch (which is the default for the sx1262interface
|
||||||
// code)
|
// code)
|
||||||
|
|
||||||
|
#define MODEM_POWER_EN 41
|
||||||
|
#define MODEM_PWRKEY 40
|
||||||
|
#define MODEM_RST 9
|
||||||
|
#define MODEM_RI 7
|
||||||
|
#define MODEM_DTR 8
|
||||||
|
#define MODEM_RX 10
|
||||||
|
#define MODEM_TX 11
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user