×

INDI Library v1.9.6 Released (21 May 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

indi/drivers/focuser/nstep.cpp one line bug

  • Posts: 199
  • Thank you received: 39
While working the nFrame, using the focuser/nstep.cpp driver as a base, I found a one line bug in the nstep.cpp
Namely the 'name' of the Coil's switch for energized 'on'.

    IUFillSwitch(&CoilStatusS[COIL_ENERGIZED_OFF], "COIL_ENERGIZED_OFF", "De-energized", ISS_OFF);
->>>    IUFillSwitch(&CoilStatusS[COIL_ENERGIZED_ON], "COIL_ENERGIZED_OFF", "Energized", ISS_OFF);
"../focuser/nstep.cpp" line 91 of 798 --11%-- col 31

Should be 
    IUFillSwitch(&CoilStatusS[COIL_ENERGIZED_ON], "COIL_ENERGIZED_ON", "Energized", ISS_OFF);

The implications of this are that the coil's can never be left energized after a move
The following user(s) said Thank You: Jasem Mutlaq
5 months 3 weeks ago #79061

Please Log in or Create an account to join the conversation.

Good catch! Fixed.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
5 months 3 weeks ago #79071

Please Log in or Create an account to join the conversation.

Time to create page: 0.346 seconds