提交 7da65f83 编写于 作者: Y Yilu Mao 提交者: yilu.myl

Change the return value type, fixed #1736

An enum-typed expression is used in a Boolean conditional context. The
enum type does not appear to have a distinguished false (zero) value.

Change the type as int to fix such issue.
上级 59891ca5
......@@ -243,7 +243,7 @@ void ota_set_zoneAB_bootinfo_to_default(void)
enum bootinfo_zone ota_get_valid_bootinfo_zone(void)
{
enum bootinfo_zone ret = OTA_BOOTINFO_ZONEA;
int ret = OTA_BOOTINFO_ZONEA;
//get boot info to choose linkA or linkB.
ret = ota_check_bootinfo(OTA_BOOTINFO_ZONEA);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册