Skip to content

Commit

Permalink
indicate firmware update vs downgrade in msg
Browse files Browse the repository at this point in the history
  • Loading branch information
decentjohn committed Mar 25, 2021
1 parent de76694 commit 7a2d2fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion de1plus/vars.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -3383,8 +3383,10 @@ proc check_firmware_update_is_available {} {

# new method, directly comparing the incremented version number
if {[ifexists ::de1(Firmware_file_Version)] != "" && [ifexists ::settings(firmware_version_number)] != ""} {
if {[ifexists ::de1(Firmware_file_Version)] != [ifexists ::settings(firmware_version_number)]} {
if {[ifexists ::de1(Firmware_file_Version)] > [ifexists ::settings(firmware_version_number)]} {
set ::de1(firmware_update_button_label) "Firmware update available"
} elseif {[ifexists ::de1(Firmware_file_Version)] < [ifexists ::settings(firmware_version_number)]} {
set ::de1(firmware_update_button_label) "Firmware downgrade available"
}

}
Expand Down

0 comments on commit 7a2d2fb

Please sign in to comment.