input: nova_mmi: update firmware when version is not equal

Update firmware when version of bin and touch module is not equal
in order to follow moto tradition, also can do flexible firmware update.

Change-Id: I448fc6b82785731046ec2ea4fcdab4be0a715e26
Signed-off-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-on: https://gerrit.mot.com/1206766
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Jialei Hao <haojl2@motorola.com>
Reviewed-by: Jun Weng <wengjun1@motorola.com>
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Jianqi Yang <yangj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wangyq13 2018-07-10 13:07:11 +08:00 • committed by Yeqing Wang
commit 9dab917b02

View file

@ -131,7 +131,7 @@ int32_t Check_FW_Ver(void)
}
// compare IC and binary FW version
if (buf[1] > fw_entry->data[FW_BIN_VER_OFFSET])
if (buf[1] == fw_entry->data[FW_BIN_VER_OFFSET])
return 1;
else
return 0;