Good day
I am trying to add custom Gcode to Marlin.
If I remove the Serial.Print the file compile and give the required result however if I include a Serial.print instruction the compiler fail, please help with direction as to what I need?
#include "../gcode.h"
#include "../../module/planner.h"
#include
void GcodeSuite::G140() { // G140
if (!parser.seenval('R')) {
Serial.println("Error: 'R' value not provided.");
return;
}
queue.enqueue_now_P(PSTR("G28 Y"));
Serial.println("Command received: G28 Y");
}
Marlin error message:
Linking .pio\build\mega2560\firmware.elf
HardwareSerial0.cpp.o (symbol from plugin): In function `Serial':
(.text+0x0): multiple definition of `__vector_25'
.pio\build\mega2560\src\src\HAL\AVR\MarlinSerial.cpp.o (symbol from plugin)

.text+0x0): first defined here