Skip to content

Commit d209d39

Browse files
authored
there's no *.printf() in real arduino
1 parent 6dcbe15 commit d209d39

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

examples/SendReceiveClient/SendReceiveClient.ino

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,15 @@ void displayPubKey(meshtastic_MeshPacket_public_key_t pubKey, char *hex_str) {
8686

8787

8888
void encrypted_callback(uint32_t from, uint32_t to, uint8_t channel, meshtastic_MeshPacket_public_key_t pubKey, meshtastic_MeshPacket_encrypted_t *enc_payload) {
89-
Serial.printf("Received an ENCRYPTED callback from: %x to: %x\r\n", from, to);
89+
Serial.print("Received an ENCRYPTED callback from: ");
90+
Serial.print(from);
91+
Serial.print(" to: ");
92+
Serial.println(to);
9093
}
9194

9295
void portnum_callback(uint32_t from, uint32_t to, uint8_t channel, meshtastic_PortNum portNum, meshtastic_Data_payload_t *payload) {
93-
Serial.printf("Received a callback for PortNum %s\r\n", meshtastic_portnum_to_string(portNum));
96+
Serial.print("Received a callback for PortNum ");
97+
Serial.println(meshtastic_portnum_to_string(portNum));
9498
}
9599

96100
// This callback function will be called whenever the radio receives a text message

0 commit comments

Comments
 (0)