diff --git a/README.md b/README.md index 535852a..d1ce592 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/platformio.ini b/platformio.ini index 48254a7..e37b9f3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -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] diff --git a/src/TTGO_T-Beam_LoRa_APRS.ino b/src/TTGO_T-Beam_LoRa_APRS.ino index eb6ece3..6442aeb 100644 --- a/src/TTGO_T-Beam_LoRa_APRS.ino +++ b/src/TTGO_T-Beam_LoRa_APRS.ino @@ -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);