fix: Android send 0xFF reboot confirmation after OTA COMPLETE (closes #1)
This commit is contained in:
parent
a84727abdc
commit
f74a4a5420
1 changed files with 2 additions and 0 deletions
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue