diff --git a/klippy/extras/neopixel.py b/klippy/extras/neopixel.py index b8a94599..1afb4664 100644 --- a/klippy/extras/neopixel.py +++ b/klippy/extras/neopixel.py @@ -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) diff --git a/src/neopixel.c b/src/neopixel.c index 1a38d4da..bbea09f8 100644 --- a/src/neopixel.c +++ b/src/neopixel.c @@ -195,6 +195,6 @@ command_neopixel_send(uint32_t *args) uint8_t oid = args[0]; struct neopixel_s *n = oid_lookup(oid, command_config_neopixel); int ret = send_data(n); - sendf("neopixel_result success=%c", ret ? 0 : 1); + sendf("neopixel_result oid=%c success=%c", oid, ret ? 0 : 1); } DECL_COMMAND(command_neopixel_send, "neopixel_send oid=%c");