summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/resistor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/resistor.c b/apps/plugins/resistor.c
index 2e204010a9..d32ac3fad9 100644
--- a/apps/plugins/resistor.c
+++ b/apps/plugins/resistor.c
@@ -953,9 +953,9 @@ static void color_to_resistance(void)
if(third_band==RES_INVALID) break;
fourth_band = do_fourth_band_menu();
- if(third_band==RES_INVALID) break;
-
- total_resistance_centiunits = calculate_resistance(first_band,
+ if(fourth_band==RES_INVALID) break;
+
+ total_resistance_centiunits = calculate_resistance(first_band,
second_band,
third_band);