MarlinFirmware / Marlin

Marlin is an optimized firmware for RepRap 3D printers based on the Arduino platform. Many commercial 3D printers come with Marlin installed. Check with your vendor if you need source code for your specific machine.
https://marlinfw.org
GNU General Public License v3.0
16.34k stars 19.26k forks source link

WRITE_HEATER_BED Compile Error #6673

Closed Guyver1n3 closed 7 years ago

Guyver1n3 commented 7 years ago

Hi

When Changing #define TEMP_SENSOR_BED 0 to #define TEMP_SENSOR_BED 1

The following compiling error occurred at Line 822 in temperature.cpp - temperature control

Arduino: 1.8.2 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -Wall -Wextra -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10802 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\mega" "C:\Users\GUYVER~1\AppData\Local\Temp\arduino_build_875315\sketch\temperature.cpp" -o "C:\Users\GUYVER~1\AppData\Local\Temp\arduino_build_875315\sketch\temperature.cpp.o" C:\Users\GUYVER~1\AppData\Local\Temp\arduino_build_875315\sketch\temperature.cpp: In static member function 'static void Temperature::manage_heater()':

temperature.cpp:822: error: 'WRITE_HEATER_BED' was not declared in this scope

     WRITE_HEATER_BED(LOW);

                         ^

exit status 1 'WRITE_HEATER_BED' was not declared in this scope

Please Help on this error or point to Forum that this error is been worked on. Arduino Compile Error.txt

.

bgort commented 7 years ago

Check your pins_XXXX.h file and make sure that your HEATER_BED_PIN is correct.

Guyver1n3 commented 7 years ago

Hi bgort, Thank you for your fast response. I checked out the pins_XXXX.h file and picked up from there that in the configuration.h #define MOTHERBOARD BOARD_RAMPS_14_EFF must change to #define MOTHERBOARD BOARD_RAMPS_14_EFB. You were a great help in finding the correct file to help me forward.

I'm a NOOB with the code thus greatly appreciate. Hope we can keep this error up for other NOOBS too as there is not a lot said on google about that error. Even had a guy almost decoding the whole config file as he said it might be something to do with Arduino 1.x.x Capability :-(, Didn't feel like the right answer to me...lol.

bgort commented 7 years ago

No problem. Glad to help!

github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.