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

HardwareSerial: Fix for zero availableCharsCount in callback if there… #1307

Merged
merged 1 commit into from
Jan 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sming/SmingCore/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void HardwareSerial::commandProcessing(bool reqEnable)
void HardwareSerial::delegateTask (os_event_t *inputEvent)
{
int uartNr = inputEvent->par >> 25; // the uart_nr is in the last byte
inputEvent->par = inputEvent->par & 0x0FFF; // clear the last bit
inputEvent->par = inputEvent->par & 0x00FFFFFF; // clear the last byte
uint8 rcvChar = inputEvent->par % 256; // can be done by bitlogic, avoid casting from ETSParam
uint16 charCount = inputEvent->par / 256 ;

Expand Down