Commit 658e7551 authored by Karol Adrianek's avatar Karol Adrianek

libwr2rf/wr2rf: bug fix for reading softstart/softstop debug signals

parent fd40a823
...@@ -2658,12 +2658,12 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo) ...@@ -2658,12 +2658,12 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo)
val = libwr2rf_read16 val = libwr2rf_read16
(dev, WR2RF_VME_REGS_INIT + WR2RF_INIT_REGS_TMGIO1 + lemo*2); (dev, WR2RF_VME_REGS_INIT + WR2RF_INIT_REGS_TMGIO1 + lemo*2);
strb_printf(strb, "out: "); strb_printf(strb, "out: ");
if (val == (1 << (LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP - 1))) { if (val == (1 << LIBWR2RF_LEMO_DBG_WRS_SOFTSTOP)) {
unsigned vtu; unsigned vtu;
strb_printf(strb, "softstop"); strb_printf(strb, "softstop");
vtu = libwr2rf_read16(dev, WR2RF_VME_REGS_INIT + WR2RF_INIT_REGS_SOFTSTART); vtu = libwr2rf_read16(dev, WR2RF_VME_REGS_INIT + WR2RF_INIT_REGS_SOFTSTOP);
switch (vtu) { switch (vtu) {
case LIBWR2RF_RF1T1_SOFTSTOP_SEL: case LIBWR2RF_RF1T1_SOFTSTOP_SEL:
...@@ -2683,7 +2683,7 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo) ...@@ -2683,7 +2683,7 @@ lemo_disp_dbg(struct libwr2rf_dev *dev, struct strb *strb, unsigned lemo)
break; break;
} }
} }
else if (val == (1 << (LIBWR2RF_LEMO_DBG_WRS_SOFTSTART - 1))) { else if (val == (1 << LIBWR2RF_LEMO_DBG_WRS_SOFTSTART)) {
unsigned vtu; unsigned vtu;
strb_printf(strb, "softstart"); strb_printf(strb, "softstart");
......
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