From d67d26825efecfe773e80f00eed5b6168fb1b944 Mon Sep 17 00:00:00 2001 From: profezzorn Date: Sun, 26 Apr 2020 12:15:09 -0700 Subject: [PATCH] blade id fix --- props/prop_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/props/prop_base.h b/props/prop_base.h index 1923c38c5..99592f5ca 100644 --- a/props/prop_base.h +++ b/props/prop_base.h @@ -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) {