sforkowany z mirror/meshtastic-android
less logspam for expected msgs
rodzic
633200ac44
commit
7ff7686ccb
|
@ -723,15 +723,11 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
intent.getParcelableExtra<DataPacket>(EXTRA_PAYLOAD)!!
|
||||
|
||||
when (payload.dataType) {
|
||||
Portnums.PortNum.POSITION_APP_VALUE -> {
|
||||
// This is expected
|
||||
debug("activity class ignores position messages")
|
||||
}
|
||||
Portnums.PortNum.TEXT_MESSAGE_APP_VALUE -> {
|
||||
model.messagesState.addMessage(payload)
|
||||
}
|
||||
else ->
|
||||
warn("Ignored dataType ${payload.dataType}")
|
||||
debug("activity only cares about text messages, ignoring dataType ${payload.dataType}")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue