mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: add range test portnum to .csv export
reference: https://github.com/meshtastic/firmware/pull/2732
This commit is contained in:
parent
aa2fc2f707
commit
c8e9410f5c
1 changed files with 4 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue