mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
reformat per coding conventions
This commit is contained in:
parent
2c75d0dee7
commit
5b653d29f8
29 changed files with 207 additions and 149 deletions
|
|
@ -1392,7 +1392,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 ?: 8, 1) // If we don't have my node info, assume 8 channels
|
||||
max(myNodeInfo?.maxChannels ?: 8, 1) // If we don't have my node info, assume 8 channels
|
||||
var l = lIn
|
||||
while (l.size < maxChannels) {
|
||||
val b = ChannelProtos.Channel.newBuilder()
|
||||
|
|
@ -1561,7 +1561,7 @@ class MeshService : Service(), Logging {
|
|||
) {
|
||||
try {
|
||||
val mi = myNodeInfo
|
||||
if(mi != null) {
|
||||
if (mi != null) {
|
||||
debug("Sending our position/time to=$destNum lat=$lat, lon=$lon, alt=$alt")
|
||||
|
||||
val position = MeshProtos.Position.newBuilder().also {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue