diff --git a/config/sample-macros.cfg b/config/sample-macros.cfg index 60ec51ec..1d98f5c8 100644 --- a/config/sample-macros.cfg +++ b/config/sample-macros.cfg @@ -140,7 +140,7 @@ gcode: [gcode_macro QUERY_BME280] default_parameter_SENSOR: bme280 my_sensor gcode: - {printer.gcode.action_respond_info( + {action_respond_info( "Temperature: %.2f C\n" "Pressure: %.2f hPa\n" "Humidity: %.2f%%" % ( @@ -171,7 +171,7 @@ gcode: [gcode_macro QUERY_HTU21D] default_parameter_SENSOR: htu21d my_sensor gcode: - {printer.gcode.action_respond_info( + {action_respond_info( "Temperature: %.2f C\n" "Humidity: %.2f%%" % ( printer[SENSOR].temperature,