Skip to content

Commit e9d512b

Browse files
committed
Update Example20_PMP_with_L-Band_Keys_via_MQTT.ino
1 parent a186664 commit e9d512b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/ZED-F9P/Example20_PMP_with_L-Band_Keys_via_MQTT/Example20_PMP_with_L-Band_Keys_via_MQTT.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ void mqttMessageHandler(int messageSize) {
372372
Serial.print(F("Key: \""));
373373
for (uint8_t digit = 0; digit < keyLengthBytes; digit++)
374374
{
375-
Serial.print(spartnData[keyStart + digit], HEX); // Print the key as ASCII Hex
375+
Serial.print(spartnData[keyStart + digit] >> 4, HEX); // Print the key as ASCII Hex
376+
Serial.print(spartnData[keyStart + digit] & 0x0F, HEX); // Print the key as ASCII Hex
376377
}
377378
Serial.println(F("\""));
378379
keyStart += keyLengthBytes; // Update keyStart for the next key

0 commit comments

Comments
 (0)