kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
refactor: add range test portnum to .csv export
reference: https://github.com/meshtastic/firmware/pull/2732pull/759/head
rodzic
aa2fc2f707
commit
c8e9410f5c
|
@ -508,7 +508,10 @@ class UIViewModel @Inject constructor(
|
||||||
val hopLimit = proto.hopLimit
|
val hopLimit = proto.hopLimit
|
||||||
|
|
||||||
val payload = when {
|
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()
|
proto.hasDecoded() -> "\"" + proto.decoded.payload.toStringUtf8()
|
||||||
.replace("\"", "\\\"") + "\""
|
.replace("\"", "\\\"") + "\""
|
||||||
proto.hasEncrypted() -> "${proto.encrypted.size()} encrypted bytes"
|
proto.hasEncrypted() -> "${proto.encrypted.size()} encrypted bytes"
|
||||||
|
|
Ładowanie…
Reference in New Issue