mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
set allowSpecialFloatingPointValues
This commit is contained in:
parent
ac316c6179
commit
e328b5b5d9
1 changed files with 2 additions and 2 deletions
|
|
@ -297,7 +297,7 @@ class MeshService : Service(), Logging {
|
|||
myInfo = myInfo,
|
||||
nodeDB = nodeDBbyNodeNum.values.toTypedArray(),
|
||||
)
|
||||
val json = Json { isLenient = true }
|
||||
val json = Json { isLenient = true; allowSpecialFloatingPointValues = true }
|
||||
val asString = json.encodeToString(MeshServiceSettingsData.serializer(), settings)
|
||||
debug("Saving settings")
|
||||
getPrefs().edit {
|
||||
|
|
@ -325,7 +325,7 @@ class MeshService : Service(), Logging {
|
|||
try {
|
||||
getPrefs().getString("json", null)?.let { asString ->
|
||||
|
||||
val json = Json { isLenient = true }
|
||||
val json = Json { isLenient = true; allowSpecialFloatingPointValues = true }
|
||||
val settings = json.decodeFromString(MeshServiceSettingsData.serializer(), asString)
|
||||
installNewNodeDB(settings.myInfo, settings.nodeDB)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue