mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 01:42:15 +00:00
fix log msg
This commit is contained in:
parent
79c61cf0e0
commit
07b4eea037
@ -303,7 +303,8 @@ void NodeDB::updateFrom(const MeshPacket &mp)
|
|||||||
if (p.has_data) {
|
if (p.has_data) {
|
||||||
// Keep a copy of the most recent text message.
|
// Keep a copy of the most recent text message.
|
||||||
if (p.data.typ == Data_Type_CLEAR_TEXT) {
|
if (p.data.typ == Data_Type_CLEAR_TEXT) {
|
||||||
DEBUG_MSG("Received text msg from=0%0x, msg=%.*s\n", mp.from, p.data.payload.size, p.data.payload.bytes);
|
DEBUG_MSG("Received text msg from=0x%0x, id=%d, msg=%.*s\n", mp.from, mp.id, p.data.payload.size,
|
||||||
|
p.data.payload.bytes);
|
||||||
if (mp.to == NODENUM_BROADCAST || mp.to == nodeDB.getNodeNum()) {
|
if (mp.to == NODENUM_BROADCAST || mp.to == nodeDB.getNodeNum()) {
|
||||||
// We only store/display messages destined for us.
|
// We only store/display messages destined for us.
|
||||||
devicestate.rx_text_message = mp;
|
devicestate.rx_text_message = mp;
|
||||||
|
Loading…
Reference in New Issue
Block a user