Updated HW test items for SWo
git-svn-id: https://svn.vbchaos.nl/svn/hsb/trunk@248 05563f52-14a8-4384-a975-3d1654cca0fa
This commit is contained in:
@@ -157,11 +157,15 @@ static ErrorStatus read(const struct IODevice* self, char* buffer, size_t length
|
||||
{
|
||||
struct KeypadQueueItem rxQueueItem;
|
||||
|
||||
if (xQueueReceive(keypad->rxQueue, &rxQueueItem, portMAX_DELAY) == pdTRUE)
|
||||
if (xQueueReceive(keypad->rxQueue, &rxQueueItem, 0) == pdTRUE)
|
||||
{
|
||||
*actualLength = sizeof(struct KeypadQueueItem) / sizeof (char);
|
||||
memcpy(buffer, &rxQueueItem, sizeof(struct KeypadQueueItem) / sizeof (char));
|
||||
}
|
||||
else
|
||||
{
|
||||
returnValue = ERROR;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user