Ver código fonte

fixed wrong error message for input device on RPI (#1379)

* fixed wrong error message for input device

* error message without errnofor input device on RPI
 to prevent from including additional header

Co-authored-by: kkl <klingenberger@bfmc.de>
pull/1381/head
kernelkinetic 4 anos atrás
committed by GitHub
pai
commit
6038c8fdd5
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c Ver arquivo

@ -4661,7 +4661,7 @@ static void EventThreadSpawn(char *device)
fd = open(device, O_RDONLY | O_NONBLOCK);
if (fd < 0)
{
TRACELOG(LOG_WARNING, "RPI: Failed to open input device (error: %d)", device, worker->fd);
TRACELOG(LOG_WARNING, "RPI: Failed to open input device %s", device);
return;
}
worker->fd = fd;

Carregando…
Cancelar
Salvar