disable waitForReciveIdle

This commit is contained in:
uvos 2022-04-12 00:39:05 +02:00
parent 4aca3c3a11
commit 25b7258458

View File

@ -305,7 +305,6 @@ void auxDispatch(Pwm16b* auxPwm, char* token, Serial* serial)
void serialDispatch(Serial* serial, SVector<Item, MAX_ITEMS>* items, RgbLed* rgbled, Pwm16b* auxPwm,
W433DataReciver* reciver)
{
if(serial->dataIsWaiting())
{
char buffer[COMMAND_BUFFER_SIZE];
@ -316,7 +315,7 @@ void serialDispatch(Serial* serial, SVector<Item, MAX_ITEMS>* 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);
}