Skip to content

Commit 7ff7bd0

Browse files
authored
Fix TransportHAL debug output (#1287)
1 parent 1fa4728 commit 7ff7bd0

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

core/Version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
#define MYSENSORS_LIBRARY_VERSION_MINOR 3 //!< Minor release version
5151
#define MYSENSORS_LIBRARY_VERSION_PATCH 2 //!< Patch version
5252
#define MYSENSORS_LIBRARY_VERSION_PRERELEASE "beta" //!< Pre-release suffix, i.e. alpha, beta, rc.1, etc
53-
#define MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER 0x04 //!< incremental counter, starting at 0x00. 0xFF for final release
53+
#define MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER 0x05 //!< incremental counter, starting at 0x00. 0xFF for final release
5454

5555

5656
#if (MYSENSORS_LIBRARY_VERSION_PRERELEASE_NUMBER != 0xFF)

hal/transport/MyTransportHAL.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool transportHALReceive(MyMessage *inMsg, uint8_t *msgLength)
106106
AES128CBCDecrypt(IV, (uint8_t *)rx_data, payloadLength);
107107
#if defined(MY_DEBUG_VERBOSE_TRANSPORT_HAL)
108108
hwDebugBuf2Str((const uint8_t *)rx_data, payloadLength);
109-
SIGN_DEBUG(PSTR("THA:RCV:PLAIN=%s\n"), hwDebugPrintStr);
109+
TRANSPORT_HAL_DEBUG(PSTR("THA:RCV:PLAIN=%s\n"), hwDebugPrintStr);
110110
#endif
111111
#endif
112112
// Reject messages with incorrect protocol version
@@ -144,7 +144,7 @@ bool transportHALSend(const uint8_t nextRecipient, const MyMessage *outMsg, cons
144144
}
145145
#if defined(MY_DEBUG_VERBOSE_TRANSPORT_HAL)
146146
hwDebugBuf2Str((const uint8_t *)&outMsg->last, len);
147-
SIGN_DEBUG(PSTR("THA:SND:MSG=%s\n"), hwDebugPrintStr);
147+
TRANSPORT_HAL_DEBUG(PSTR("THA:SND:MSG=%s\n"), hwDebugPrintStr);
148148
#endif
149149

150150
#if defined(MY_TRANSPORT_ENCRYPTION) && !defined(MY_RADIO_RFM69)

keywords.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ MY_SOFT_SPI_MISO_PIN LITERAL1
147147
MY_SOFT_SPI_MOSI_PIN LITERAL1
148148
MY_SOFT_SPI_SCK_PIN LITERAL1
149149

150+
# TransportHAL
151+
MY_DEBUG_VERBOSE_TRANSPORT_HAL
152+
150153
# RF24
151154
MY_DEBUG_VERBOSE_RF24 LITERAL1
152155
MY_RADIO_RF24 LITERAL1

0 commit comments

Comments
 (0)