From f72ef245a4019e05a99ba0a8b5a9ad6c80ab0064 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 1 Sep 2016 16:50:51 -0700 Subject: [PATCH] Interleave updates to left and right hands. This helps mitigate an issue where we send multiple updates to the same hand fast enough that one of them fails to be read successfully --- source/implementation/Model01.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/source/implementation/Model01.cpp b/source/implementation/Model01.cpp index ca34ca3a..ffe57548 100644 --- a/source/implementation/Model01.cpp +++ b/source/implementation/Model01.cpp @@ -54,14 +54,17 @@ cRGB Model01::led_get_crgb_at(uint8_t i) { } void Model01::led_sync() { - rightHand.sendLEDData(); - rightHand.sendLEDData(); - rightHand.sendLEDData(); - rightHand.sendLEDData(); leftHand.sendLEDData(); + rightHand.sendLEDData(); + leftHand.sendLEDData(); + rightHand.sendLEDData(); + leftHand.sendLEDData(); + rightHand.sendLEDData(); + leftHand.sendLEDData(); + rightHand.sendLEDData(); }