refactor: add range test portnum to .csv export

reference: https://github.com/meshtastic/firmware/pull/2732
pull/759/head
andrekir 2023-10-08 19:15:35 -03:00
rodzic aa2fc2f707
commit c8e9410f5c
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -508,7 +508,10 @@ class UIViewModel @Inject constructor(
val hopLimit = proto.hopLimit
val payload = when {
proto.decoded.portnumValue != Portnums.PortNum.TEXT_MESSAGE_APP_VALUE -> "<${proto.decoded.portnum}>"
proto.decoded.portnumValue !in setOf(
Portnums.PortNum.TEXT_MESSAGE_APP_VALUE,
Portnums.PortNum.RANGE_TEST_APP_VALUE,
) -> "<${proto.decoded.portnum}>"
proto.hasDecoded() -> "\"" + proto.decoded.payload.toStringUtf8()
.replace("\"", "\\\"") + "\""
proto.hasEncrypted() -> "${proto.encrypted.size()} encrypted bytes"