mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-08-10 19:02:53 +02:00
t-beam ok
This commit is contained in:
@@ -203,4 +203,10 @@ void loop() {
|
||||
Utils::checkRebootTime();
|
||||
Utils::checkSleepByLowBatteryVoltage(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// HWT
|
||||
// ESP32C3 :
|
||||
// - HT-CT62
|
||||
// - and others?
|
||||
+2
-8
@@ -133,8 +133,7 @@ namespace LoRa_Utils {
|
||||
}
|
||||
|
||||
#ifdef INTERNAL_LED_PIN
|
||||
//if (Config.digi.ecoMode != 1)
|
||||
digitalWrite(INTERNAL_LED_PIN, HIGH); // disabled in Ultra Eco Mode
|
||||
if (Config.digi.ecoMode != 1) digitalWrite(INTERNAL_LED_PIN, HIGH); // disabled in Ultra Eco Mode
|
||||
#endif
|
||||
int state = radio.transmit("\x3c\xff\x01" + newPacket);
|
||||
transmitFlag = true;
|
||||
@@ -149,18 +148,13 @@ namespace LoRa_Utils {
|
||||
Utils::println(String(state));
|
||||
}
|
||||
#ifdef INTERNAL_LED_PIN
|
||||
//if (Config.digi.ecoMode != 1)
|
||||
digitalWrite(INTERNAL_LED_PIN, LOW); // disabled in Ultra Eco Mode
|
||||
if (Config.digi.ecoMode != 1) digitalWrite(INTERNAL_LED_PIN, LOW); // disabled in Ultra Eco Mode
|
||||
#endif
|
||||
if (Config.loramodule.txFreq != Config.loramodule.rxFreq) {
|
||||
changeFreqRx();
|
||||
}
|
||||
}
|
||||
|
||||
/*void startReceive() {
|
||||
radio.startReceive();
|
||||
}*/
|
||||
|
||||
String receivePacketFromSleep() {
|
||||
String packet = "";
|
||||
int state = radio.readData(packet);
|
||||
|
||||
Reference in New Issue
Block a user