How to find the bad command in config.g?
-
When I upload my config.g, I see the following error message on the PanelDue:
"Error: Bad command: Configuration file for Duet Wifi"
Is there an easy way to determine what is the bad command?
-
you post the config.g here.
but there was a problem with the resume line from the configurator. try commenting that line. -
Look for the text: "Configuration file for Duet Wifi" in your config.g. I suspect you're missing a semi-colon to comment out a line.
You can also send M98 Pconfig.g to re-execute the config.g macro and see any error messages or bad commands thrown to the gcode console.
-
@Phaedrux said in How to find the bad command in config.g?:
Look for the text: "Configuration file for Duet Wifi" in your config.g. I suspect you're missing a semi-colon to comment out a line.
Bingo!!!
I assumed that "Configuration file for Duet Wifi" was a generic duet's message but apparently it was trying to tell me exactly what is the offending code.
Yes, a missing semicolon.