libscpi/src/error.c
@@ -134,7 +134,7 @@ struct error_reg { int16_t from; int16_t to; scpi_reg_val_t bit; scpi_reg_val_t esrBit; }; #define ERROR_DEFS_N 9 @@ -170,7 +170,7 @@ for (i = 0; i < ERROR_DEFS_N; i++) { if ((err <= errs[i].from) && (err >= errs[i].to)) { SCPI_RegSetBits(context, SCPI_REG_ESR, errs[i].bit); SCPI_RegSetBits(context, SCPI_REG_ESR, errs[i].esrBit); } }