MKFirmware / MK4duo

MK4duo Firmware Printers 3D for Arduino and Arduino due
http://www.marlinkimbra.it
GNU General Public License v3.0
206 stars 117 forks source link

v4.4.0 doesn't compile #742

Open Micilera opened 5 years ago

Micilera commented 5 years ago

Among other hundreds of very annoying warnings, there is also the following error. Best Regards, Micilera

C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle\nozzle.cpp: In static member function 'static void Nozzle::clean(const uint8_t&, const uint8_t&, const float&, const uint8_t&, uint8_t)':

C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle\nozzle.cpp:119:11: error: ambiguous overload for 'operator=' (operand types are 'xyz_pos_t {aka XYZval}' and '')

   end = NOZZLE_CLEAN_CIRCLE_MIDDLE;

       ^

C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle\nozzle.cpp:119:11: note: candidates are:

In file included from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle../../../MK4duo.h:106:0,

             from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle\nozzle.cpp:23:

C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle../../../src/lib/types.h:300:14: note: XYZval& XYZval::operator=(const XYZEval&) [with T = float]

XYZval& operator= (const XYZEval &xyze) { set(xyze.x, xyze.y, xyze.z); return *this; }

          ^

In file included from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle../../../MK4duo.h:106:0,

             from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle\nozzle.cpp:23:

C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle../../../src/lib/types.h:267:8: note: XYZval& XYZval::operator=(const XYZval&)

struct XYZval {

    ^

C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\core\nozzle../../../src/lib/types.h:267:8: note: XYZval& XYZval::operator=(XYZval&&)

In file included from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\commands../../src/core/stepper/stepper.h:44:0,

             from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\commands\../../MK4duo.h:128,

             from C:\Users\xx\AppData\Local\Temp\arduino_build_83946\sketch\src\commands\commands.cpp:29: