-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
Hello, I am using version 1.0.5 and trying to use the flush() function from inside the library to avoid any user induced loop delay so that I can know faster when transmission was complete. But the UART stops responding when I try implementing this way. I implemented a custom function to send the data as below
void NeoHWSerial::write_bytes(uint8_t *buffer,uint8_t datalen){ // actually writes
//active_object = this; basically active_object was assigned "this" instance while initializing
for(int i=0;i<datalen;i++){
dbgSerial.print(buffer[i],HEX);
active_object->write(buffer[i]);
}
active_object->flush(); // calling flush here to block until transmission is complete
}
Reactions are currently unavailable