Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout sending a char #177

Open
bellonemauro opened this issue May 1, 2018 · 0 comments
Open

timeout sending a char #177

bellonemauro opened this issue May 1, 2018 · 0 comments

Comments

@bellonemauro
Copy link

Dear Developer,

thanks for this lib that I use constantly in few of my open projects.
I have written a simple function to send a specific string to a custom device

bool sendData(const string &_data) {
if (m_serial->isOpen()) {
if (m_serial->write(_data) > 0) {
return true;
}
}
return false;
}

where m_serial is a serial lib port object well initialized.
This function works always, any string I send is fine, except the #

if I send the #, it get stuck in win.cc at line 352

if (!WriteFile(fd_, data, static_cast(length), &bytes_written, NULL)) {

no debug errors, just stay there forever.
Aapplication running on windows 10, and compiled using MSVC 2015.

Do you have any clue on the possible reason?
Thanks
Mauro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant