refactor: Convert detection sensor portnum payloads to text message (#688)

This commit is contained in:
Ben Meadors 2023-08-22 20:49:36 -05:00 committed by GitHub
parent 1e03b0b5e8
commit f68e112c32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -552,7 +552,7 @@ class MeshService : Service(), Logging {
to = toId,
time = rxTime * 1000L,
id = packet.id,
dataType = data.portnumValue,
dataType = if (data.portnumValue == Portnums.PortNum.DETECTION_SENSOR_APP_VALUE) Portnums.PortNum.TEXT_MESSAGE_APP_VALUE else data.portnumValue,
bytes = bytes,
hopLimit = hopLimit,
channel = packet.channel,