mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
fix bugs found via simulator
This commit is contained in:
parent
aa79ee4335
commit
81e76bfc51
6 changed files with 38 additions and 31 deletions
|
|
@ -156,24 +156,11 @@ class MockInterface(private val service: RadioInterfaceService) : Logging, IRadi
|
|||
hwModel = "Sim"
|
||||
messageTimeoutMsec = 5 * 60 * 1000
|
||||
firmwareVersion = service.getString(R.string.cur_firmware_version)
|
||||
numBands = 13
|
||||
maxChannels = 8
|
||||
}.build()
|
||||
},
|
||||
|
||||
// RadioConfig
|
||||
/* MeshProtos.FromRadio.newBuilder().apply {
|
||||
radio = RadioConfigProtos.RadioConfig.newBuilder().apply {
|
||||
|
||||
preferences = RadioConfigProtos.RadioConfig.UserPreferences.newBuilder().apply {
|
||||
region = RadioConfigProtos.RegionCode.TW
|
||||
// FIXME set critical times?
|
||||
}.build()
|
||||
|
||||
/* channel = ChannelProtos.ChannelSettings.newBuilder().apply {
|
||||
// we just have an empty listing so that the default channel works
|
||||
}.build() */
|
||||
}.build()
|
||||
}, */
|
||||
|
||||
// Fake NodeDB
|
||||
makeNodeInfo(MY_NODE, 32.776665, -96.796989), // dallas
|
||||
makeNodeInfo(MY_NODE + 1, 32.960758, -96.733521), // richardson
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue