Skip to content
Open
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
8 changes: 8 additions & 0 deletions lms2012/d_uart/Linuxmod_AM1808/d_uart_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -3113,6 +3113,14 @@ static enum hrtimer_restart Device1TimerInterrupt1(struct hrtimer *pTimer)

if (UartPort[Port].InLength)
{
// Workaround for LEGO EV3 Color Sensor (type 29) in RGB-RAW mode (4)
// which always appears to generate unexpected CRC errors
if (UartPort[Port].Type == 29 &&
UartPort[Port].Mode == 4 &&
UartPort[Port].InLength == 8)
{
CrcError = 0;
}
if (!CrcError)
{
if (UartPort[Port].Initialised == 0)
Expand Down