MKFirmware / MarlinKimbra

📟 MK 3D Printer Firmware for Arduino
52 stars 39 forks source link

Rambo board compiler error undeclared digipot_current digitalPotWrite #176

Open tonokip opened 7 years ago

tonokip commented 7 years ago

C:\Users\ULTIAD~1\AppData\Local\Temp\arduino_build_498587\sketch\src\MK_Main.cpp: In function 'void gcode_M907()':

C:\Users\ULTIAD~1\AppData\Local\Temp\arduino_build_498587\sketch\src\MK_Main.cpp:8268:72: error: 'digipot_current' was not declared in this scope

   if (code_seen(axis_codes[i])) digipot_current(i, code_value_int());

                                                                    ^

C:\Users\ULTIAD~1\AppData\Local\Temp\arduino_build_498587\sketch\src\MK_Main.cpp:8269:60: error: 'digipot_current' was not declared in this scope

 if (code_seen('B')) digipot_current(4, code_value_int());

                                                        ^

C:\Users\ULTIAD~1\AppData\Local\Temp\arduino_build_498587\sketch\src\MK_Main.cpp:8270:93: error: 'digipot_current' was not declared in this scope

 if (code_seen('S')) for (uint8_t i = 0; i <= 4; i++) digipot_current(i, code_value_int());

                                                                                         ^

C:\Users\ULTIAD~1\AppData\Local\Temp\arduino_build_498587\sketch\src\MK_Main.cpp: In function 'void gcode_M908()':

C:\Users\ULTIAD~1\AppData\Local\Temp\arduino_build_498587\sketch\src\MK_Main.cpp:8298:5: error: 'digitalPotWrite' was not declared in this scope

 );

 ^

exit status 1 Error compiling for board RAMBo.

it looks like these instances should be changed to stepper.digipot_current() and stepper.digitalPotWrite()

umfan92 commented 6 years ago

I'm having the same problem trying to flash this firmware on my Rambo board.

Was there any solution to this?