Skip to content

Unable to call flush from inside the library #7

Description

@sidpil91

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

}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions