[2.0.x] Fix ambiguous function call (SERIAL_PROTOCOL_F) when using Arduino_Core_STM32 (#11747)
This commit is contained in:
parent
d32c4efc77
commit
69d0ed5791
@ -214,7 +214,7 @@ void reset_bed_level() {
|
|||||||
for (uint8_t x = 0; x < sx; x++) {
|
for (uint8_t x = 0; x < sx; x++) {
|
||||||
for (uint8_t i = 0; i < precision + 2 + (x < 10 ? 1 : 0); i++)
|
for (uint8_t i = 0; i < precision + 2 + (x < 10 ? 1 : 0); i++)
|
||||||
SERIAL_PROTOCOLCHAR(' ');
|
SERIAL_PROTOCOLCHAR(' ');
|
||||||
SERIAL_PROTOCOL((int)x);
|
SERIAL_PROTOCOL(int(x));
|
||||||
}
|
}
|
||||||
SERIAL_EOL();
|
SERIAL_EOL();
|
||||||
#endif
|
#endif
|
||||||
@ -226,14 +226,14 @@ void reset_bed_level() {
|
|||||||
SERIAL_PROTOCOLPGM(" ["); // open sub-array
|
SERIAL_PROTOCOLPGM(" ["); // open sub-array
|
||||||
#else
|
#else
|
||||||
if (y < 10) SERIAL_PROTOCOLCHAR(' ');
|
if (y < 10) SERIAL_PROTOCOLCHAR(' ');
|
||||||
SERIAL_PROTOCOL((int)y);
|
SERIAL_PROTOCOL(int(y));
|
||||||
#endif
|
#endif
|
||||||
for (uint8_t x = 0; x < sx; x++) {
|
for (uint8_t x = 0; x < sx; x++) {
|
||||||
SERIAL_PROTOCOLCHAR(' ');
|
SERIAL_PROTOCOLCHAR(' ');
|
||||||
const float offset = fn(x, y);
|
const float offset = fn(x, y);
|
||||||
if (!isnan(offset)) {
|
if (!isnan(offset)) {
|
||||||
if (offset >= 0) SERIAL_PROTOCOLCHAR('+');
|
if (offset >= 0) SERIAL_PROTOCOLCHAR('+');
|
||||||
SERIAL_PROTOCOL_F(offset, precision);
|
SERIAL_PROTOCOL_F(offset, int(precision));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
#ifdef SCAD_MESH_OUTPUT
|
#ifdef SCAD_MESH_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user