fix: Android send 0xFF reboot confirmation after OTA COMPLETE (closes #1)
Some checks failed
CI / firmware (pull_request) Failing after 1m13s
CI / android (pull_request) Has been skipped

This commit is contained in:
eddy 2026-08-01 23:14:29 +02:00
commit f74a4a5420

View file

@ -179,6 +179,8 @@ class OtaManager(
relayManager.setOtaNotifyCallback(null) relayManager.setOtaNotifyCallback(null)
if (finalStatus == 0x10) { if (finalStatus == 0x10) {
relayManager.sendOtaData(byteArrayOf(0xFF.toByte()))
Log.d(TAG, "Sent 0xFF reboot confirmation to ESP")
withContext(Dispatchers.Main) { withContext(Dispatchers.Main) {
callback.onProgress(100, "Herstart...") callback.onProgress(100, "Herstart...")
callback.onComplete() callback.onComplete()