The following code fails to compile, giving me the following errors:
Error: GCASM: Symbol MFWD has not been defined
Error: GCASM: Symbol MREV has not been defined
With no other changes, this compiles without any errors.
If I comment out the 'If...Then End If comparison lines:
SubMotorMove(InMfwdAsBit,InMrevAsBit)'If Mfwd = 1 and Mrev = 0 ThenPrintFwd'End If'If Mfwd = 0 and Mrev = 1 ThenPrintRev'End IfLetMotorEnable=1LetMotorA=MfwdLetMotorB=MrevRepeat1000000IfSwitchValue<>1ThenExitRepeatEndIfCheckSwitchSubEndRepeatEndSub
The program compiles without errors.
I don't use bits very often but here I'm using them (as might be deduced from the code) set the direction of a motor controller which is connected to the output pins 'MotorA' and 'MotorB' so thought I'd eliminate the possibility of them being anything other than 1 or 0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The following code fails to compile, giving me the following errors:
Error: GCASM: Symbol MFWD has not been defined
Error: GCASM: Symbol MREV has not been defined
If I change the Subroutine declaration to:
With no other changes, this compiles without any errors.
If I comment out the 'If...Then End If comparison lines:
The program compiles without errors.
I don't use bits very often but here I'm using them (as might be deduced from the code) set the direction of a motor controller which is connected to the output pins 'MotorA' and 'MotorB' so thought I'd eliminate the possibility of them being anything other than 1 or 0.
Your post is great. Thank you for reporting.
Use bytes until I have an detailed answer for you.
This is fixed in the latest release. The code compiles correctly.