Skip to content

Commit

Permalink
Merge branch 'master' into feature/SCPI_99_21_8_Device_dependent_erro…
Browse files Browse the repository at this point in the history
…r_information_73
  • Loading branch information
j123b567 committed Apr 24, 2016
2 parents d2af547 + 6a42b4f commit 96f2373
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion libscpi/inc/scpi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,10 @@ extern "C" {
/* PIC32mx */
#if defined(__C32__)
#define HAVE_STRNLEN 0
#define HAVE_STRNCASECMP 1
#define HAVE_STRNCASECMP 0
#define HAVE_STRNICMP 0
#define isfinite finite
#define signbit(x) ((x)<0)
#endif

/* AVR libc */
Expand Down
4 changes: 2 additions & 2 deletions libscpi/src/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static scpi_bool_t SCPI_ErrorAddInternal(scpi_t * context, int16_t err, char * i
struct error_reg {
int16_t from;
int16_t to;
scpi_reg_val_t bit;
scpi_reg_val_t esrBit;
};

#define ERROR_DEFS_N 9
Expand Down Expand Up @@ -170,7 +170,7 @@ void SCPI_ErrorPushEx(scpi_t * context, int16_t err, char * info) {

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);
}
}

Expand Down

0 comments on commit 96f2373

Please sign in to comment.