mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
amend max channels reference
This commit is contained in:
parent
d93916368c
commit
e043a3aa9a
1 changed files with 1 additions and 1 deletions
|
|
@ -1290,7 +1290,7 @@ class MeshService : Service(), Logging {
|
|||
private fun fixupChannelList(lIn: List<ChannelProtos.Channel>): Array<ChannelProtos.Channel> {
|
||||
// When updating old firmware, we will briefly be told that there is zero channels
|
||||
val maxChannels =
|
||||
max(myNodeInfo?.maxChannels ?: 10, 10) // If we don't have my node info, assume 10 channels
|
||||
max(myNodeInfo?.maxChannels ?: 8, 8) // If we don't have my node info, assume 8 channels (source: apponly.options)
|
||||
val l = lIn.toMutableList()
|
||||
while (l.size < maxChannels) {
|
||||
val b = ChannelProtos.Channel.newBuilder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue