diff --git a/main.cpp b/main.cpp index 6130181..466d71d 100644 --- a/main.cpp +++ b/main.cpp @@ -305,7 +305,6 @@ void auxDispatch(Pwm16b* auxPwm, char* token, Serial* serial) void serialDispatch(Serial* serial, SVector* items, RgbLed* rgbled, Pwm16b* auxPwm, W433DataReciver* reciver) { - if(serial->dataIsWaiting()) { char buffer[COMMAND_BUFFER_SIZE]; @@ -316,7 +315,7 @@ void serialDispatch(Serial* serial, SVector* items, RgbLed* rgb char* token = strtok(buffer, " \n"); if(strcmp(token, "item") == 0) { - reciver->waitForReciveIdle(); + //reciver->waitForReciveIdle(); itemDispatch(items, auxPwm, strtok(NULL, " \n"), serial); } else if(strcmp(token, "rgb") == 0) @@ -505,7 +504,7 @@ int main() { for(uint16_t i = 0; i < items.count(); i++) { - reciver.waitForReciveIdle(); + //reciver.waitForReciveIdle(); items[i].type == 0 ? WirelessRelay(items[i]).resend() : UvosItem(items[i]).resend(); _delay_ms(100); }