Greetings,
This code compiles but does not run. Am I on the right track for reading a dipswitch event? In this case (case 01), dipswitch 0 is being tested for positions 0 and 2, if I am doing things correctly. Then again, if I were doing things correctly, it would work.
Thanks - Baran
void dipSwitchEvent(int index){switch (index){ case 01:// If from dipswitch 1if (genieReadObject(GENIE_OBJ_DIPSW, 0x00) // If position 0 redoneoff = display; else if (genieReadObject(GENIE_OBJ_DIPSW, 0x02) // If position 2 redoneon = display;
}
}
This code compiles but does not run. Am I on the right track for reading a dipswitch event? In this case (case 01), dipswitch 0 is being tested for positions 0 and 2, if I am doing things correctly. Then again, if I were doing things correctly, it would work.
Thanks - Baran
void dipSwitchEvent(int index){switch (index){ case 01:// If from dipswitch 1if (genieReadObject(GENIE_OBJ_DIPSW, 0x00) // If position 0 redoneoff = display; else if (genieReadObject(GENIE_OBJ_DIPSW, 0x02) // If position 2 redoneon = display;
}
}
Comment