|
@@ -1151,7 +1151,7 @@ static int download_fw(struct edgeport_serial *serial)
|
|
|
|
|
|
/* Check if we have an old version in the I2C and
|
|
/* Check if we have an old version in the I2C and
|
|
update if necessary */
|
|
update if necessary */
|
|
- if (download_cur_ver != download_new_ver) {
|
|
|
|
|
|
+ if (download_cur_ver < download_new_ver) {
|
|
dbg("%s - Update I2C dld from %d.%d to %d.%d",
|
|
dbg("%s - Update I2C dld from %d.%d to %d.%d",
|
|
__func__,
|
|
__func__,
|
|
firmware_version->Ver_Major,
|
|
firmware_version->Ver_Major,
|