heater: take a gcode_id when setting up a heater (#1028)

Allow an arbitrary gcode_id to be supplied during heater setup. This allows future extras to register additional IDs beyond B, and T#.

Signed-off-by: John Jardine <john@gprime.net>
This commit is contained in:
john-- 2019-01-02 17:44:02 -05:00 committed by KevinOConnor
parent f4d323adbc
commit f6c9150349
4 changed files with 35 additions and 27 deletions

View file

@ -5,4 +5,4 @@
# This file may be distributed under the terms of the GNU GPLv3 license.
def load_config(config):
return config.get_printer().lookup_object('heater').setup_heater(config)
return config.get_printer().lookup_object('heater').setup_heater(config, 'B')