Ian Nicholson Posted July 13, 2022 Posted July 13, 2022 (edited) It appears PPMAC originally did not support negative case constants in switch structures. However, the firmware update history for V2.5 Release Updates (August 2018) includes the following note: Quote 17. Corrected operation of switch() structure when argument evaluates to negative number, permitting case branches specifying negative integers. Negative values had gone to case 0: branch. But when I try to use code such as the following, I get a Syntax Error on the minus sign: Has the IDE just not been updated to support this change yet? Is there a different syntax I should use here? Or am I misreading the history note and this is actually not supported? Edited July 13, 2022 by Ian Nicholson Quote
steve.milici Posted July 13, 2022 Posted July 13, 2022 Sometimes the syntax checking in the IDE is biased to “C” syntax but this should download without errors. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.