kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
add Channel response to debug log
rodzic
6071fec804
commit
6678a82578
|
@ -746,6 +746,15 @@ class MeshService : Service(), Logging {
|
||||||
// add new entries if needed
|
// add new entries if needed
|
||||||
channels[ch.index] = ch
|
channels[ch.index] = ch
|
||||||
debug("Admin: Received channel ${ch.index}")
|
debug("Admin: Received channel ${ch.index}")
|
||||||
|
|
||||||
|
val packetToSave = Packet(
|
||||||
|
UUID.randomUUID().toString(),
|
||||||
|
"Channel",
|
||||||
|
System.currentTimeMillis(),
|
||||||
|
ch.toString()
|
||||||
|
)
|
||||||
|
insertPacket(packetToSave)
|
||||||
|
|
||||||
if (ch.index + 1 < mi.maxChannels) {
|
if (ch.index + 1 < mi.maxChannels) {
|
||||||
|
|
||||||
// Stop once we get to the first disabled entry
|
// Stop once we get to the first disabled entry
|
||||||
|
@ -847,7 +856,7 @@ class MeshService : Service(), Logging {
|
||||||
if (packet.hasDecoded()) {
|
if (packet.hasDecoded()) {
|
||||||
val packetToSave = Packet(
|
val packetToSave = Packet(
|
||||||
UUID.randomUUID().toString(),
|
UUID.randomUUID().toString(),
|
||||||
"packet",
|
"Packet",
|
||||||
System.currentTimeMillis(),
|
System.currentTimeMillis(),
|
||||||
packet.toString()
|
packet.toString()
|
||||||
)
|
)
|
||||||
|
@ -893,7 +902,7 @@ class MeshService : Service(), Logging {
|
||||||
if (packet.hasDecoded()) {
|
if (packet.hasDecoded()) {
|
||||||
val packetToSave = Packet(
|
val packetToSave = Packet(
|
||||||
UUID.randomUUID().toString(),
|
UUID.randomUUID().toString(),
|
||||||
"packet",
|
"Packet",
|
||||||
System.currentTimeMillis(),
|
System.currentTimeMillis(),
|
||||||
packet.toString()
|
packet.toString()
|
||||||
)
|
)
|
||||||
|
|
Ładowanie…
Reference in New Issue