neopixel: Fix neopixel_result message so that it contains an oid
In order for commit 82156170 to work properly, the neopixel_result
message must contain the oid.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -56,7 +56,7 @@ class PrinterNeoPixel:
|
||||
self.neopixel_update_cmd = self.mcu.lookup_command(
|
||||
"neopixel_update oid=%c pos=%hu data=%*s", cq=cmd_queue)
|
||||
self.neopixel_send_cmd = self.mcu.lookup_query_command(
|
||||
"neopixel_send oid=%c", "neopixel_result success=%c",
|
||||
"neopixel_send oid=%c", "neopixel_result oid=%c success=%c",
|
||||
oid=self.oid, cq=cmd_queue)
|
||||
def update_color_data(self, red, green, blue, white, index=None):
|
||||
red = int(red * 255. + .5)
|
||||
|
||||
Reference in New Issue
Block a user