Enabling #define RGB_LED results in compiler error May 08, 2017 06:21AM |
Registered: 6 years ago Posts: 27 |
sketch\Marlin_main.cpp: In function 'void gcode_M190()': Marlin_main.cpp:6890: error: expected 'while' before 'float' const float temp_diff = fabs(target_temp - temp); ^ Marlin_main.cpp:6890: error: expected '(' before 'float' Marlin_main.cpp:6890: error: expected primary-expression before 'float' Marlin_main.cpp:6890: error: expected ')' before 'float' Marlin_main.cpp:6890: error: expected ';' before 'float' Marlin_main.cpp:6890: error: 'temp' was not declared in this scope const float temp_diff = fabs(target_temp - temp); ^ Marlin_main.cpp:6908: error: break statement not within loop or switch if (old_temp - temp < MIN_COOLING_SLOPE_DEG_BED) break; ^ sketch\Marlin_main.cpp: At global scope: Marlin_main.cpp:6914: error: expected unqualified-id before 'while' } while (wait_for_heatup && TEMP_BED_CONDITIONS); ^ Marlin_main.cpp:6916: error: expected unqualified-id before 'if' if (wait_for_heatup) LCD_MESSAGEPGM(MSG_BED_DONE); ^ In file included from sketch\Marlin.h:32:0, from sketch\Marlin_main.cpp:223: ultralcd.h:64: error: expected unqualified-id before ')' token #define LCD_MESSAGEPGM(x) lcd_setstatuspgm(PSTR(x)) ^ sketch\Marlin_main.cpp:6916:26: note: in expansion of macro 'LCD_MESSAGEPGM' if (wait_for_heatup) LCD_MESSAGEPGM(MSG_BED_DONE); ^ In file included from sketch\Marlin_main.cpp:223:0: Marlin.h:358: error: expected unqualified-id before 'do' #define KEEPALIVE_STATE(n) do{ busy_state = n; }while(0) ^ sketch\Marlin_main.cpp:6917:5: note: in expansion of macro 'KEEPALIVE_STATE' KEEPALIVE_STATE(IN_HANDLER); ^ Marlin.h:358: error: expected unqualified-id before 'while' #define KEEPALIVE_STATE(n) do{ busy_state = n; }while(0) ^ sketch\Marlin_main.cpp:6917:5: note: in expansion of macro 'KEEPALIVE_STATE' KEEPALIVE_STATE(IN_HANDLER); ^ Marlin_main.cpp:6918: error: expected declaration before '}' token } ^ exit status 1 expected 'while' before 'float'
Re: Enabling #define RGB_LED results in compiler error May 08, 2017 06:57AM |
Admin Registered: 13 years ago Posts: 7,000 |
Re: Enabling #define RGB_LED results in compiler error May 08, 2017 10:09AM |
Registered: 6 years ago Posts: 27 |
Re: Enabling #define RGB_LED results in compiler error May 08, 2017 10:41AM |
Registered: 6 years ago Posts: 27 |
Re: Enabling #define RGB_LED results in compiler error May 08, 2017 11:14AM |
Registered: 8 years ago Posts: 14 |
Re: Enabling #define RGB_LED results in compiler error May 09, 2017 04:45AM |
Registered: 6 years ago Posts: 27 |
Re: Enabling #define RGB_LED results in compiler error May 09, 2017 07:53AM |
Admin Registered: 13 years ago Posts: 7,000 |
#if ENABLED(PRINTER_EVENT_LEDS) // Gradually change LED strip from blue to violet as bed heats up if (!wants_to_cool) { const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255); if (red != old_red) set_led_color((old_red = red), 0, 255); } } #endif
#if ENABLED(PRINTER_EVENT_LEDS) // Gradually change LED strip from blue to violet as bed heats up if (!wants_to_cool) { const uint8_t red = map(constrain(temp, start_temp, target_temp), start_temp, target_temp, 0, 255); if (red != old_red) set_led_color((old_red = red), 0, 255); } #endif
Re: Enabling #define RGB_LED results in compiler error May 09, 2017 10:35AM |
Registered: 6 years ago Posts: 27 |
Re: Enabling #define RGB_LED results in compiler error May 09, 2017 12:08PM |
Registered: 8 years ago Posts: 14 |
Re: Enabling #define RGB_LED results in compiler error May 09, 2017 06:29PM |
Registered: 6 years ago Posts: 3 |
Quote
Dust
Good spotting...
I've updated the github issue with these details. One day ill learn how to submit the fix to the real code...
Re: Enabling #define RGB_LED results in compiler error May 10, 2017 05:34PM |
Registered: 6 years ago Posts: 3 |
Quote
AlpinaV8
*unhelpful remark removed* I recommend Visual Studio with the Visual Micro plugin.Quote
Dust
Good spotting...
I've updated the github issue with these details. One day ill learn how to submit the fix to the real code...
*Admin note: rude, unhelpful comments will be removed.