Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:25 19 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : OPTION AUTORUN

Author Message
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 234
Posted: 07:34am 18 Sep 2025
Copy link to clipboard 
Print this post

There seems to be a minor issue with option autorun in V6.01.00b11

AUTORUN ON ... turns aotorun on
AUTORUN ENABLED ... throws no error, but turns autorun off !!

btw, autorun enabled and autorun disabled both execute without syntax error and they are even not in the documentation.
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10407
Posted: 08:12am 18 Sep 2025
Copy link to clipboard 
Print this post

This is correct.

  Quote  OPTION AUTORUN n
[,NORESET]


is valid syntax.
ENABLED is treated as a variable with the value 0 as does any other undefined variable.
Use OPTION EXPLICIT and this sort of problem goes away
 
ville56
Senior Member

Joined: 08/06/2022
Location: Austria
Posts: 234
Posted: 08:22am 18 Sep 2025
Copy link to clipboard 
Print this post

Thank you Peter. Didn't think about the possibilty of using a variable in that place but now it makes sense.
btw: OPTION AUTORUN 0 does not throw an error but disables autorun. This could also be mentioned in the manual. According to the firmware error message the valid value range is 0 to 3.
                                                                 
73 de OE1HGA, Gerald
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025