added round_to_E_series function to eseries lib.

This commit is contained in:
Jan Bader
2021-04-14 14:37:03 +02:00
parent feab9236d1
commit f56788f666
4 changed files with 56 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ int set_output_voltage(double setpoint_voltage, ESeries E_resistors) {
R_low_decade_w = i_low;
for (int j_low = 0; j_low < e_max_values; j_low++) {
for (int j_low = 0; j_low <= e_max_values; j_low++) {
// in the 6th decate only examine R_low = 1M, then stop
if ( i_low == 6 && j_low > 0 )