mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-08 22:56:05 +00:00
N version OTA fix
This commit is contained in:
@ -189,7 +189,13 @@ static int http_rest_post(http_request_t *request){
|
||||
return http_rest_post_reboot(request);
|
||||
}
|
||||
if (!strcmp(request->url, "api/ota")){
|
||||
#if PLATFORM_BK7231T
|
||||
return http_rest_post_flash(request, 0x132000);
|
||||
#elif PLATFORM_BK7231N
|
||||
return http_rest_post_flash(request, 0x12A000);
|
||||
#else
|
||||
// TODO
|
||||
#endif
|
||||
}
|
||||
if (!strncmp(request->url, "api/flash/", 10)){
|
||||
return http_rest_post_flash_advanced(request);
|
||||
|
||||
Reference in New Issue
Block a user