Skip to content

[BUG] Compile error when enabling BLTOUCH ( Servo related) on ESP32 (MKS Tinybee) #24007

Closed
@jesterhead82

Description

Did you test the latest bugfix-2.0.x code?

Yes, and the problem still exists.

Bug Description

Compile error on latest Bugfix when enabling BLtouch.

Compiling .pio\build\mks_tinybee\src\src\MarlinCore.cpp.o
Marlin/src/HAL/ESP32/Servo.cpp: In member function 'int8_t Servo::attach(int)':
Marlin/src/HAL/ESP32/Servo.cpp:38:42: error: 'get_pwm_channel' was not declared in this scope
channel = get_pwm_channel(pin, 50u, 16u);
^
Compiling .pio\build\mks_tinybee\src\src\core\serial.cpp.o
At global scope:
cc1plus.exe: warning: unrecognized command line option '-Wno-register'
*** [.pio\build\mks_tinybee\src\src\HAL\ESP32\Servo.cpp.o] Error 1

Bug Timeline

At keast as of April/2022

Expected behavior

Compilation when BLtouch is enabled on ESP32 (MKS Tinybee)

Actual behavior

Comnpile failure

Steps to Reproduce

No response

Version of Marlin Firmware

2.0.xx

Printer model

No response

Electronics

No response

Add-ons

No response

Bed Leveling

No response

Your Slicer

No response

Host Software

No response

Additional information & file uploads

MarlinConfig.zip

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions