We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to call return in a synchronized block ?
template int SafeRingBufferN::read_char() { synchronized { return RingBufferN::read_char(); } }
-> template int SafeRingBufferN::read_char() { int ret = 0; synchronized { ret = RingBufferN::read_char(); } return ret; }
At least this fix the compilation warning
Arduino15\packages\arduino\hardware\samd\1.8.11\cores\arduino\USB\SAMD21_USBDevice.h uint32_t len = 0; synchronized { len = _rx_buffer.availableForStore(); }
The text was updated successfully, but these errors were encountered:
Resolved by #610
Sorry, something went wrong.
Fixed by #618
No branches or pull requests
Is it possible to call return in a synchronized block ?
template
int SafeRingBufferN::read_char() {
synchronized {
return RingBufferN::read_char();
}
}
->
template
int SafeRingBufferN::read_char() {
int ret = 0;
synchronized {
ret = RingBufferN::read_char();
}
return ret;
}
At least this fix the compilation warning
Arduino15\packages\arduino\hardware\samd\1.8.11\cores\arduino\USB\SAMD21_USBDevice.h
uint32_t len = 0;
synchronized {
len = _rx_buffer.availableForStore();
}
The text was updated successfully, but these errors were encountered: