Skip to content

Commit

Permalink
blade id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Apr 30, 2020
1 parent e074400 commit d67d268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion props/prop_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ class PropBase : CommandParser, Looper, protected SaberBase {
if (NELEM(blades) > 1) {
float resistor = id();

float best_err = 1000000.0;
float best_err = 100000000.0;
for (size_t i = 0; i < NELEM(blades); i++) {
float err = fabsf(resistor - blades[i].ohm);
if (err < best_err) {
Expand Down

0 comments on commit d67d268

Please sign in to comment.