Skip to content

[2.0.x] Fix ambiguous function call (SERIAL_PROTOCOL_F) when using Arduino_Core_STM32#11747

Merged
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
ktand:bugfix-2.0.x-SERIAL_PROTOCOL_F-ambiguous
Sep 10, 2018
Merged

[2.0.x] Fix ambiguous function call (SERIAL_PROTOCOL_F) when using Arduino_Core_STM32#11747
thinkyhead merged 2 commits intoMarlinFirmware:bugfix-2.0.xfrom
ktand:bugfix-2.0.x-SERIAL_PROTOCOL_F-ambiguous

Conversation

@ktand
Copy link
Contributor

@ktand ktand commented Sep 6, 2018

Description

When building for STM32 using the Arduino_Core_STM32 the compiler returns the following error:

In file included from ...\src\inc\marlinconfig.h:45:0,

                 from ...\src\feature\bedlevel\bedlevel.cpp:23:

...\src\feature\bedlevel\bedlevel.cpp: In function 'void print_2d_array(uint8_t, uint8_t, uint8_t, element_2d_fn)':

...\src\core\serial.h:137:58: error: call of overloaded 'print(const float&, const uint8_t&)' is ambiguous

   #define SERIAL_PROTOCOL_F(x,y)      MYSERIAL0.print(x,y)
                                                          
...\src\feature\bedlevel\bedlevel.cpp:236:11: note: in expansion of macro 'SERIAL_PROTOCOL_F'

           SERIAL_PROTOCOL_F(offset, precision);

@thinkyhead thinkyhead merged commit 69d0ed5 into MarlinFirmware:bugfix-2.0.x Sep 10, 2018
@ktand ktand deleted the bugfix-2.0.x-SERIAL_PROTOCOL_F-ambiguous branch October 14, 2018 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants