Welcome! Log In Create A New Profile

Advanced

Marlin_Main error after attempting to enable Auto Bed Leveling

Posted by Sminky 
Marlin_Main error after attempting to enable Auto Bed Leveling
June 19, 2016 12:27AM
I just printed a auto bedleveling upgrade for my Wilson. I went through Marlin to enable the settings, and I'm getting Compilation Errors.

Quote

Marlin_main.cpp: In function 'void do_blocking_move_to(float, float, float)':
Marlin_main.cpp:1086: error: expected primary-expression before '{' token
Marlin_main.cpp:1086: error: expected `;' before '{' token
Marlin_main.cpp:1096: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:1100: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:1109: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:1119: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:4626: error: expected `}' at end of input

It looks to me like there's an incorrectly declared function, but I can't find it. I'll probably spend the next several hours trying to narrow it down, but I wanted to see if anyone else has had this problem and/or has the solution that could save me hours of work!
Attachments:
open | download - Marlin_main.cpp (249.7 KB)
Re: Marlin_Main error after attempting to enable Auto Bed Leveling
June 19, 2016 12:47AM
I have a hunch it has to do with the differences in syntax between various Arduino versions. I am running the stable version of Marlin, version 1.0.2-1, through version 1.0 of the Arduino IDE. After giving it a shot through Arduino IDE version 1.06, I'm still getting syntax compilation errors, but the line numbers have moved slightly.

Quote

Marlin_main.cpp: In function 'void do_blocking_move_to(float, float, float)':
Marlin_main.cpp:1087: error: expected primary-expression before '{' token
Marlin_main.cpp:1087: error: expected `;' before '{' token
Marlin_main.cpp:1097: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:1101: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:1110: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:1120: error: a function-definition is not allowed here before '{' token
Marlin_main.cpp:4627: error: expected `}' at end of input

I'll report anymore of my findings...
Re: Marlin_Main error after attempting to enable Auto Bed Leveling
June 19, 2016 01:51AM
Well, I think I figured it out. Pretty sure it was my own stupidity smileys with beersmileys with beer

When Main.cpp was calling XY_TRAVEL_SPEED, it was calling it from Configuration.h, where I had defined it as:

Quote
#define XY_TRAVEL_SPEED {100*60)

drinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smileydrinking smiley

CURSE YOU CURLY BRACKETS!!!!

Hey at least I didn't waste an entire night on this...spinning smiley sticking its tongue out
Sorry, only registered users may post in this forum.

Click here to login