boards/sama5d3-xplained: Fix a typo on the EINTR error code

This commit is contained in:
Gustavo Henrique Nihei 2021-04-08 06:48:20 -03:00 committed by Alan Carvalho de Assis
parent ada84cacda
commit c4ed7361b7

View File

@ -181,7 +181,7 @@ static int ajoy_sample(FAR const struct ajoy_lowerhalf_s *lower,
MAX_ADC_CHANNELS * sizeof(struct adc_msg_s));
if (nread < 0)
{
if (nread != iEINTR)
if (nread != EINTR)
{
ierr("ERROR: read failed: %d\n", (int)nread);
}