(gdb) break /home/stellarmate/Projects/indi/drivers/filter_wheel/pegasus_indigo.cpp:143
Breakpoint 1 at 0x557de09e20: file /home/stellarmate/Projects/indi/drivers/filter_wheel/pegasus_indigo.cpp, line 143.
(gdb) c
Continuing.
The following diff seems to fix the issue:
diff --git a/drivers/filter_wheel/pegasus_indigo.cpp b/drivers/filter_wheel/pegasus_indigo.cpp
index b184decad..972052857 100644
--- a/drivers/filter_wheel/pegasus_indigo.cpp
+++ b/drivers/filter_wheel/pegasus_indigo.cpp
@@ -134,7 +134,7 @@ void PegasusINDIGO::TimerHit()
if (isConnected() && FilterSlotNP.s == IPS_BUSY)
{
char response[DRIVER_LEN] = {0};
- if (sendCommand("WF"))
+ if (sendCommand("WF", response))
{
int position = -1;
if (sscanf(response, "WF:%d", &position) == 1)
With that in place, I see the following in the logs:
INFO 181.999770 sec : Pegasus INDIGO is online.
DEBUG 182.000172 sec : CMD <WV>
DEBUG 182.015682 sec : RES <WV:1.2>
INFO 185.342267 sec : Setting current filter to slot 1
DEBUG 185.342539 sec : CMD <WM:1>
DEBUG 185.375298 sec : RES <WM:1>
DEBUG 186.002934 sec : CMD <WF>
DEBUG 186.015014 sec : RES <WF:-1>
DEBUG 187.016328 sec : CMD <WF>
DEBUG 187.038995 sec : RES <WF:-1>
DEBUG 188.040434 sec : CMD <WF>
DEBUG 188.062985 sec : RES <WF:-1>
DEBUG 189.064485 sec : CMD <WF>
DEBUG 189.086792 sec : RES <WF:1>
INFO 194.713997 sec : Setting current filter to slot 7
DEBUG 194.714204 sec : CMD <WM:7>
DEBUG 194.750045 sec : RES <WM:7>
DEBUG 195.093203 sec : CMD <WF>
DEBUG 195.117954 sec : RES <WF:-1>
DEBUG 196.119440 sec : CMD <WF>
DEBUG 196.141981 sec : RES <WF:-1>
DEBUG 197.143499 sec : CMD <WF>
DEBUG 197.165692 sec : RES <WF:-1>
DEBUG 198.166977 sec : CMD <WF>
DEBUG 198.189555 sec : RES <WF:-1>
DEBUG 199.190985 sec : CMD <WF>
DEBUG 199.213615 sec : RES <WF:-1>
DEBUG 200.215133 sec : CMD <WF>
DEBUG 200.237485 sec : RES <WF:7>
INFO 206.282713 sec : Setting current filter to slot 1
DEBUG 206.282891 sec : CMD <WM:1>
DEBUG 206.316700 sec : RES <WM:1>
DEBUG 207.245849 sec : CMD <WF>
DEBUG 207.260594 sec : RES <WF:-1>
DEBUG 208.261946 sec : CMD <WF>
DEBUG 208.284591 sec : RES <WF:-1>
DEBUG 209.285932 sec : CMD <WF>
DEBUG 209.308229 sec : RES <WF:-1>
DEBUG 210.309508 sec : CMD <WF>
DEBUG 210.332186 sec : RES <WF:-1>
DEBUG 211.333015 sec : CMD <WF>
DEBUG 211.356101 sec : RES <WF:-1>
DEBUG 212.357608 sec : CMD <WF>
DEBUG 212.379995 sec : RES <WF:1>
INFO 215.036573 sec : Pegasus INDIGO is offline.