From bbe43c964209e93149707fb1e1a49389a3c9c4cd Mon Sep 17 00:00:00 2001 From: crc-32 Date: Thu, 14 Jan 2021 22:24:47 +0000 Subject: [PATCH] Actually send the app version packet d'oh --- .../io/rebble/libpebblecommon/services/SystemService.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/io/rebble/libpebblecommon/services/SystemService.kt b/src/commonMain/kotlin/io/rebble/libpebblecommon/services/SystemService.kt index 15c4ca0..afb34f4 100644 --- a/src/commonMain/kotlin/io/rebble/libpebblecommon/services/SystemService.kt +++ b/src/commonMain/kotlin/io/rebble/libpebblecommon/services/SystemService.kt @@ -74,7 +74,10 @@ class SystemService(private val protocolHandler: ProtocolHandler) : ProtocolServ watchModelCallback = null } is PhoneAppVersion.AppVersionRequest -> { - appVersionRequestHandler?.invoke() + val res = appVersionRequestHandler?.invoke() + if (res != null) { + send(res) // Cannot be low priority + } } else -> receivedMessages.offer(packet) }