Deploying to gh-pages from @ Klipper3d/klipper@d120a313b7 🚀
This commit is contained in:
@@ -1793,6 +1793,11 @@ reference - see <strong>klippy/extras/servo.py</strong> as an example.</p>
|
||||
during the <code>load_config()</code> or "connect event" phases. Use either
|
||||
<code>raise config.error("my error")</code> or <code>raise printer.config_error("my
|
||||
error")</code> to report the error.</li>
|
||||
<li>Do not store a reference to the <code>config</code> object in a class member
|
||||
variable (nor in any similar location that may persist past initial
|
||||
module loading). The <code>config</code> object is a reference to a "config
|
||||
loading phase" class and it is not valid to invoke its methods after
|
||||
the "config loading phase" has completed.</li>
|
||||
<li>Use the "pins" module to configure a pin on a micro-controller. This
|
||||
is typically done with something similar to
|
||||
<code>printer.lookup_object("pins").setup_pin("pwm",
|
||||
|
||||
Reference in New Issue
Block a user