Commit f7d5829f authored by John Gill's avatar John Gill

Merge branch 'ak-lemocfg-bug-fix' into 'master'

Bug fix for configuring LEMO's debug signals

See merge request !4
parents 56ab09ff b6622135
......@@ -1327,7 +1327,7 @@ libwr2rf_configure_lemo_debug(struct libwr2rf_dev *dev, unsigned lemo, unsigned
unsigned baddr = WR2RF_VME_REGS_INIT;
unsigned addr = 0;
if (dbg < 1 || dbg > 9)
if (dbg > LIBWR2RF_LEMO_DBG_WRS_SOFTSTART)
return LIBWR2RF_ERROR_BAD_PARAM;
switch (lemo) {
......
......@@ -148,6 +148,7 @@ int libwr2rf_read_diag(struct libwr2rf_dev *dev, unsigned id,
#define LIBWR2RF_LEMO_TMGCLK2 6
/* Debug names */
#define LIBWR2RF_LEMO_DBG_NONE 0
#define LIBWR2RF_LEMO_DBG_NCO_RESET 1
#define LIBWR2RF_LEMO_DBG_RF1_NCO_RESET_CDELAYED 2
#define LIBWR2RF_LEMO_DBG_RF2_NCO_RESET_CDELAYED 3
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment