diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2021-08-04 10:55:37 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2021-08-04 14:56:20 +0000 |
commit | c522917644636e874fe56225515cdbbabd9cc95e (patch) | |
tree | 3a69aa4574a2b8883d35219f8e53404314bdd3f1 | |
parent | 37bfcab23f55f81e890c9e6ec7f41ef89d17006f (diff) | |
download | rockbox-c522917644636e874fe56225515cdbbabd9cc95e.tar.gz rockbox-c522917644636e874fe56225515cdbbabd9cc95e.zip |
plugins/resistor: Fix incorrect check for a valid 4th band value
Change-Id: I499bcd6d2d6fd5dd92c184cc1ec014e62f0441fa
-rw-r--r-- | apps/plugins/resistor.c | 6 |
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) | |||
953 | if(third_band==RES_INVALID) break; | 953 | if(third_band==RES_INVALID) break; |
954 | 954 | ||
955 | fourth_band = do_fourth_band_menu(); | 955 | fourth_band = do_fourth_band_menu(); |
956 | if(third_band==RES_INVALID) break; | 956 | if(fourth_band==RES_INVALID) break; |
957 | 957 | ||
958 | total_resistance_centiunits = calculate_resistance(first_band, | 958 | total_resistance_centiunits = calculate_resistance(first_band, |
959 | second_band, | 959 | second_band, |
960 | third_band); | 960 | third_band); |
961 | 961 | ||