diff --git a/.github/workflows/main_matrix.yml b/.github/workflows/main_matrix.yml index b4a8a4739..09c0635a4 100644 --- a/.github/workflows/main_matrix.yml +++ b/.github/workflows/main_matrix.yml @@ -111,6 +111,7 @@ jobs: - board: t-echo - board: pca10059_diy_eink - board: feather_diy + - board: nano-g2-ultra uses: ./.github/workflows/build_nrf52.yml with: board: ${{ matrix.board }} diff --git a/.vscode/settings.json b/.vscode/settings.json index 3b489975b..03922dc72 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { "editor.formatOnSave": true, - "editor.defaultFormatter": "trunk.io" + "editor.defaultFormatter": "trunk.io", + "trunk.enableWindows": true } diff --git a/src/modules/SerialModule.cpp b/src/modules/SerialModule.cpp index a3cac53b1..1caae69a3 100644 --- a/src/modules/SerialModule.cpp +++ b/src/modules/SerialModule.cpp @@ -249,7 +249,7 @@ ProcessMessage SerialModuleRadio::handleReceived(const meshtastic_MeshPacket &mp if (moduleConfig.serial.mode == meshtastic_ModuleConfig_SerialConfig_Serial_Mode_DEFAULT || moduleConfig.serial.mode == meshtastic_ModuleConfig_SerialConfig_Serial_Mode_SIMPLE) { - serialPrint->printf("%s", p.payload.bytes); + serialPrint->write(p.payload.bytes, p.payload.size); } else if (moduleConfig.serial.mode == meshtastic_ModuleConfig_SerialConfig_Serial_Mode_TEXTMSG) { meshtastic_NodeInfoLite *node = nodeDB.getMeshNode(getFrom(&mp)); String sender = (node && node->has_user) ? node->user.short_name : "???"; diff --git a/src/mqtt/MQTT.cpp b/src/mqtt/MQTT.cpp index 67299c4bd..4e5a84477 100644 --- a/src/mqtt/MQTT.cpp +++ b/src/mqtt/MQTT.cpp @@ -607,6 +607,15 @@ std::string MQTT::meshPacketToJson(meshtastic_MeshPacket *mp) if (int(decoded->sats_in_view)) { msgPayload["sats_in_view"] = new JSONValue((uint)decoded->sats_in_view); } + if ((int)decoded->PDOP) { + msgPayload["PDOP"] = new JSONValue((int)decoded->PDOP); + } + if ((int)decoded->HDOP) { + msgPayload["HDOP"] = new JSONValue((int)decoded->HDOP); + } + if ((int)decoded->VDOP) { + msgPayload["VDOP"] = new JSONValue((int)decoded->VDOP); + } jsonObj["payload"] = new JSONValue(msgPayload); } else { LOG_ERROR("Error decoding protobuf for position message!\n"); diff --git a/version.properties b/version.properties index 00ddcfc79..c00681305 100644 --- a/version.properties +++ b/version.properties @@ -1,4 +1,4 @@ [VERSION] major = 2 minor = 1 -build = 21 +build = 22