Fix error in recovering after power panic. (Function pointer was passed instead of function been called.)
It manifested istself as following compiler warnings: sketch/Marlin_main.cpp: In function 'void print_physical_coordinates()': sketch/Marlin_main.cpp:9065:86: warning: pointer to a function used in arithmetic [-Wpointer-arith] printf_P(_N("physical coordinates: (%.3f, %.3f, %.3f)\n"), st_get_position_mm[X_AXIS], st_get_position_mm[Y_AXIS], st_get_position_mm[Z_AXIS]); ^ sketch/Marlin_main.cpp:9065:114: warning: pointer to a function used in arithmetic [-Wpointer-arith] printf_P(_N("physical coordinates: (%.3f, %.3f, %.3f)\n"), st_get_position_mm[X_AXIS], st_get_position_mm[Y_AXIS], st_get_position_mm[Z_AXIS]); ^ sketch/Marlin_main.cpp:9065:142: warning: pointer to a function used in arithmetic [-Wpointer-arith] printf_P(_N("physical coordinates: (%.3f, %.3f, %.3f)\n"), st_get_position_mm[X_AXIS], st_get_position_mm[Y_AXIS], st_get_position_mm[Z_AXIS]); ^ sketch/Marlin_main.cpp:9066:1: warning: pointer offset from symbol maybe incorrect [enabled by default] } ^ _Z18st_get_position_mmh+2 sketch/Marlin_main.cpp:9066:1: warning: pointer offset from symbol maybe incorrect [enabled by default] _Z18st_get_position_mmh+2 sketch/Marlin_main.cpp:9066:1: warning: pointer offset from symbol maybe incorrect [enabled by default] _Z18st_get_position_mmh+1 sketch/Marlin_main.cpp:9066:1: warning: pointer offset from symbol maybe incorrect [enabled by default] _Z18st_get_position_mmh+1
This commit is contained in:
parent
fb6aa72de9
commit
2c00f065fd
1 changed files with 1 additions and 1 deletions
|
@ -9062,7 +9062,7 @@ void print_world_coordinates()
|
||||||
|
|
||||||
void print_physical_coordinates()
|
void print_physical_coordinates()
|
||||||
{
|
{
|
||||||
printf_P(_N("physical coordinates: (%.3f, %.3f, %.3f)\n"), st_get_position_mm[X_AXIS], st_get_position_mm[Y_AXIS], st_get_position_mm[Z_AXIS]);
|
printf_P(_N("physical coordinates: (%.3f, %.3f, %.3f)\n"), st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS));
|
||||||
}
|
}
|
||||||
|
|
||||||
void print_mesh_bed_leveling_table()
|
void print_mesh_bed_leveling_table()
|
||||||
|
|
Loading…
Reference in a new issue