Skip to content

Commit

Permalink
2020-04-01 01:45:37 UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
Decent Espresso committed Apr 1, 2020
1 parent f415d17 commit 3308cad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions binary.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -1517,7 +1517,7 @@ proc append_live_data_to_espresso_chart {} {
set resistance 0
catch {
# main calculation, based on laminar flow. # linear adjustment
set resistance [round_to_two_digits [expr {$::de1(pressure) / ($::de1(flow) / $::settings(linear_resistance_adjustment) ) }]]
set resistance [round_to_two_digits [expr {$::de1(pressure) / pow($::de1(flow), 2) }]]
}
espresso_resistance append $resistance

Expand All @@ -1532,7 +1532,7 @@ proc append_live_data_to_espresso_chart {} {
catch {
if {$::de1(pressure) != 0 && $::de1(scale_weight_rate) != "" && $::de1(scale_weight_rate) != 0} {
# if the scale is available, use that instead of the flowmeter calculation, to determine resistance
set resistance_weight [round_to_two_digits [expr {$::de1(pressure) / ($::de1(scale_weight_rate) / $::settings(linear_resistance_adjustment) ) }]]
set resistance_weight [round_to_two_digits [expr {$::de1(pressure) / pow($::de1(scale_weight_rate), 2) }]]
}
}

Expand Down
2 changes: 1 addition & 1 deletion manifest.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"binary.tcl" 61759 1585439717 5e8100d0ceef9e5c2133a413353512009c5f372b95243dc260f20cd4f4149d26
"binary.tcl" 61681 1585705423 62d9bcf2bf326506ee0dff3634516f45b712da1390f38f3c31f95a1df58ab6db
"bluetooth.tcl" 81160 1585596422 84d26d68231fa91546d14784573cfa7dcfbf82c9b3036678d5a8461201b5a7b5
"translation.tcl" 377345 1585072943 a6e37ee94ef5483ca6902edb038d7e2a60c689d385d06ef103979ea5a80e84ae
"de1plus.tcl" 170 1515060265 5fed814ddfcaeeb20317ebf4b554b4c88a5dac1f7e606c193adecc2388014687
Expand Down
2 changes: 1 addition & 1 deletion timestamp.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1585596425
1585705537

0 comments on commit 3308cad

Please sign in to comment.