Skip to content

Commit

Permalink
bugfix: v1.0 users could not set calibration voltage, always said 'un…
Browse files Browse the repository at this point in the history
…known'
  • Loading branch information
decentjohn committed Apr 27, 2021
1 parent a15d41e commit 5aee616
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions de1plus/skins/default/de1_skin_settings.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1239,11 +1239,11 @@ add_de1_text "calibrate calibrate2" 1280 290 -text [translate "Calibrate"] -font
# IF you read 0, 1120, or 1230, you can write a new nominal voltage, which may be 120 or 230V

add_de1_text "calibrate2" 350 450 -text [translate "Voltage"] -font Helv_11_bold -fill "#7f879a" -anchor "nw" -justify "left"
add_de1_variable "calibrate2" 1000 450 -text "" -font Helv_11_bold -fill "#4e85f4" -anchor "nw" -textvariable {[if {$::settings(heater_voltage) == "1230" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { return [subst {\[ [translate "Set to 120V"] \]}] } else { return "" }]}
add_de1_variable "calibrate2" 1600 450 -text "" -font Helv_11_bold -fill "#4e85f4" -anchor "nw" -textvariable {[if {$::settings(heater_voltage) == "1120" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { return [subst {\[ [translate "Set to 230V"] \]}] } else { return "" }]}
add_de1_variable "calibrate2" 1000 450 -text "" -font Helv_11_bold -fill "#4e85f4" -anchor "nw" -textvariable {[if {$::settings(heater_voltage) != "1120" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { return [subst {\[ [translate "Set to 120V"] \]}] } else { return "" }]}
add_de1_variable "calibrate2" 1600 450 -text "" -font Helv_11_bold -fill "#4e85f4" -anchor "nw" -textvariable {[if {$::settings(heater_voltage) != "1230" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { return [subst {\[ [translate "Set to 230V"] \]}] } else { return "" }]}

add_de1_button "calibrate2" {if {$::settings(heater_voltage) == "1230" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { if {$::android == 0} { set ::settings(heater_voltage) "1120" }; set_heater_voltage "120"; get_heater_voltage} } 1000 450 1450 600 ""
add_de1_button "calibrate2" {if {$::settings(heater_voltage) == "1120" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { if {$::android == 0} { set ::settings(heater_voltage) "1230" }; set_heater_voltage "230"; get_heater_voltage} } 1600 450 2050 600 ""
add_de1_button "calibrate2" {if {$::settings(heater_voltage) != "1120" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { if {$::android == 0} { set ::settings(heater_voltage) "1120" }; set_heater_voltage "120"; get_heater_voltage} } 1000 450 1450 600 ""
add_de1_button "calibrate2" {if {$::settings(heater_voltage) != "1230" || $::settings(heater_voltage) == "0" || $::settings(heater_voltage) == "" } { if {$::android == 0} { set ::settings(heater_voltage) "1230" }; set_heater_voltage "230"; get_heater_voltage} } 1600 450 2050 600 ""

add_de1_variable "calibrate2" 700 450 -text [translate "Voltage"] -font Helv_11 -fill "#7f879a" -anchor "nw" -justify "left" -textvariable {[if {$::settings(heater_voltage) == "120" || $::settings(heater_voltage) == "1120"} {
return "120V"
Expand Down

0 comments on commit 5aee616

Please sign in to comment.