neopixel: Don't wait for responses when in debug mode.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-12-01 11:09:00 -05:00
parent 1af28d8a79
commit f3fd814ce0
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ class PrinterNeoPixel:
if print_time is not None:
minclock = self.mcu.print_time_to_clock(print_time)
scmd = self.neopixel_send_cmd.send
if self.printer.get_start_args().get('debugoutput') is not None:
return
for i in range(8):
params = scmd([self.oid], minclock=minclock,
reqclock=BACKGROUND_PRIORITY_CLOCK)