×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

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

  • Posts: 276
  • Thank you received: 52
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
2 years 3 months ago #79061

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

Good catch! Fixed.
2 years 3 months ago #79071

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

Time to create page: 0.351 seconds