mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
Fix handling of unknown firmware version
This commit is contained in:
parent
24494f32e4
commit
a07dbdb039
@ -1037,9 +1037,9 @@ proc ::rmupdate::download_firmware {{download_url ""} {version ""}} {
|
|||||||
variable install_log
|
variable install_log
|
||||||
|
|
||||||
if {$version == ""} {
|
if {$version == ""} {
|
||||||
set image_file "${img_dir}/RaspberryMatic-${version}.img"
|
|
||||||
} else {
|
|
||||||
set image_file "${img_dir}/RaspberryMatic-unknown.img"
|
set image_file "${img_dir}/RaspberryMatic-unknown.img"
|
||||||
|
} else {
|
||||||
|
set image_file "${img_dir}/RaspberryMatic-${version}.img"
|
||||||
}
|
}
|
||||||
if {$download_url == ""} {
|
if {$download_url == ""} {
|
||||||
foreach e [get_available_firmware_downloads] {
|
foreach e [get_available_firmware_downloads] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user