Skip to content

Commit eb2e20d

Browse files
committed
fix: Convert Boolean to Int for nodedbReset protocol field
After merging main, the nodedbReset field type changed from Boolean to int32 in the protobuf definition. Convert the preserveFavorites Boolean parameter to the appropriate Int value (1 or 0).
1 parent 7265786 commit eb2e20d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/geeksville/mesh/service/MeshService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2324,7 +2324,7 @@ class MeshService : Service() {
23242324
override fun requestNodedbReset(requestId: Int, destNum: Int, preserveFavorites: Boolean) =
23252325
toRemoteExceptions {
23262326
packetHandler.sendToRadio(
2327-
newMeshPacketTo(destNum).buildAdminPacket(id = requestId) { nodedbReset = preserveFavorites },
2327+
newMeshPacketTo(destNum).buildAdminPacket(id = requestId) { nodedbReset = if (preserveFavorites) 1 else 0 },
23282328
)
23292329
}
23302330

0 commit comments

Comments
 (0)