[8.1.0_new_ota]OTA2.0
This commit is contained in:
@@ -48,7 +48,7 @@ class OTAUpgradeDialog(context: Context) :
|
||||
// ToastUtils.showShort("立即升级命令发送失败")
|
||||
// }
|
||||
|
||||
val query: JSONObject = JSONObject()
|
||||
val query = JSONObject()
|
||||
query.put("cmd","ASK_PAD_UPGRADE_RES")
|
||||
query.put("token",OTAUpgradeConfig.token)
|
||||
query.put("allow_upgrade",true)
|
||||
@@ -69,10 +69,11 @@ class OTAUpgradeDialog(context: Context) :
|
||||
// }
|
||||
|
||||
//不允许OTA升级
|
||||
val query: JSONObject = JSONObject()
|
||||
query.put("cmd","PAD_NOT_ALLOW_UPGRADE_REASON")
|
||||
val query = JSONObject()
|
||||
query.put("cmd","ASK_PAD_UPGRADE_RES")
|
||||
query.put("token",OTAUpgradeConfig.token)
|
||||
query.put("data","自动驾驶中")
|
||||
query.put("allow_upgrade",false)
|
||||
query.put("reason","")
|
||||
Log.i("xuxinchao",query.toString())
|
||||
CallerAutoPilotControlManager.sendOtaPadMsgQuery(query.toString())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user