plugins/resistor: Fix incorrect check for a valid 4th band value
Change-Id: I499bcd6d2d6fd5dd92c184cc1ec014e62f0441fa
This commit is contained in:
parent
37bfcab23f
commit
c522917644
1 changed files with 3 additions and 3 deletions
|
@ -953,9 +953,9 @@ static void color_to_resistance(void)
|
||||||
if(third_band==RES_INVALID) break;
|
if(third_band==RES_INVALID) break;
|
||||||
|
|
||||||
fourth_band = do_fourth_band_menu();
|
fourth_band = do_fourth_band_menu();
|
||||||
if(third_band==RES_INVALID) break;
|
if(fourth_band==RES_INVALID) break;
|
||||||
|
|
||||||
total_resistance_centiunits = calculate_resistance(first_band,
|
total_resistance_centiunits = calculate_resistance(first_band,
|
||||||
second_band,
|
second_band,
|
||||||
third_band);
|
third_band);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue