Blink LED when sending telemetry.

pull/75/head
Matt 2021-09-16 15:23:44 -05:00
rodzic eb43b0baf1
commit b3adda48e9
3 zmienionych plików z 9 dodań i 3 usunięć

Wyświetl plik

@ -43,6 +43,7 @@ After connection with APRX based DIGI it can be used as KISS-TNC
* ((AUT TX)) - information about sending automatic positioning frame when GPS is turned off
* ((KISSTX)) - information about sending the frame sent by KISS
* ((WEB TX)) - sending frame as requested via HTTP
* ((TEL TX)) - information about sending telemetry
## How to binary first flash readme... (thanx SP6VWX)
* Download the appropriate binary file for your board from: https://github.com/SQ9MDD/TTGO-T-Beam-LoRa-APRS/releases

Wyświetl plik

@ -54,7 +54,7 @@ build_flags =
-D 'NETWORK_GPS_PORT=10110' ; GPS NMEA Port
-D 'ENABLE_TNC_SELF_TELEMETRY' ; can be set from www interface
-D 'TNC_SELF_TELEMETRY_INTERVAL=3600L' ; can be set from www interface (seconds)
-D 'TNC_SELF_TELEMETRY_SEQ=0L'
-D 'TNC_SELF_TELEMETRY_SEQ=0L' ; start number for telemetry sequence
-D 'SHOW_OLED_TIME=15000' ; OLED Timeout
[env:ttgo-t-beam-v1.0]

Wyświetl plik

@ -511,6 +511,10 @@ String prepareCallsign(const String& callsign){
char Tcall_message_char[9];
sprintf_P(Tcall_message_char, "%-9s", Tcall);
String Tcall_message = String(Tcall_message_char);
// Flash the light when telemetry is being sent
#ifdef ENABLE_LED_SIGNALING
digitalWrite(TXLED, LOW);
#endif
// Determine sequence number (or 'MIC')
// Pad to 3 digits
@ -534,7 +538,9 @@ String prepareCallsign(const String& callsign){
writedisplaytext("((TEL TX))","","","","","");
// Flash the light when telemetry is being sent
// CODE HERE
#ifdef ENABLE_LED_SIGNALING
digitalWrite(TXLED, HIGH);
#endif
// Update the telemetry sequence number
if(tel_sequence >= 0 & tel_sequence < 999){
@ -1136,7 +1142,6 @@ void loop() {
}
}
}
//#if (enable_tel == true) && defined(KISS_PROTOCOL)
#if defined(ENABLE_TNC_SELF_TELEMETRY) && defined(KISS_PROTOCOL)
if (nextTelemetryFrame < millis()){
nextTelemetryFrame = millis() + (tel_interval * 1000);