瀏覽代碼

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 年之前
committed by GitHub
父節點
當前提交
6038c8fdd5
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c 查看文件

@ -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;

Loading…
取消
儲存