techElder
Well-known member
I can't find a way to get around the compiler message "Duplicate label name - timeoutLabel" with SERIN using a timeout label in a #Macro definition.
Code:
#Macro mySerMacro
serin [timeoutTime, timeoutLabel],pin,baud,variable
' do something
goto nothingHappened
timeoutLabel:
' do something different
goto exitThisRoutine
nothingHappened:
exitThisRoutine:
#endm