From 68ce8d0496b7d24a7641cfae290141c45cd28b6c Mon Sep 17 00:00:00 2001 From: Jan Horacek Date: Sat, 25 May 2024 22:53:47 +0200 Subject: [PATCH] Add DV19 - MtbBusNotSent. --- src/modules/module.cpp | 1 + src/mtbusb/mtbusb-common.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/modules/module.cpp b/src/modules/module.cpp index d91c6af..bc3e2ea 100644 --- a/src/modules/module.cpp +++ b/src/modules/module.cpp @@ -635,6 +635,7 @@ QJsonObject MtbModule::dvRepr(uint8_t dvi, const std::vector &data) con case Mtb::DVCommon::MtbBusReceived: case Mtb::DVCommon::MtbBusBadCrc: case Mtb::DVCommon::MtbBusSent: + case Mtb::DVCommon::MtbBusNotSent: if (data.size() == 4) return {{Mtb::DVCommonToStr(dvi), static_cast(pack(data))}}; break; diff --git a/src/mtbusb/mtbusb-common.h b/src/mtbusb/mtbusb-common.h index 062c0b7..30df6b9 100644 --- a/src/mtbusb/mtbusb-common.h +++ b/src/mtbusb/mtbusb-common.h @@ -99,6 +99,7 @@ enum DVCommon { // not class-enum by design MtbBusReceived = 16, MtbBusBadCrc = 17, MtbBusSent = 18, + MtbBusNotSent = 19, }; const QMap dvsCommon { @@ -112,6 +113,7 @@ const QMap dvsCommon { {DVCommon::MtbBusReceived, "mtbbus_received"}, {DVCommon::MtbBusBadCrc, "mtbbus_bad_crc"}, {DVCommon::MtbBusSent, "mtbbus_sent"}, + {DVCommon::MtbBusNotSent, "mtbbus_not_sent"}, }; QString DVCommonToStr(uint8_t dv); // also accepts DV dv