瀏覽代碼

set WPI_MODE_GPIO as a default mode also for CM4 (#92)

pull/111/head
fanoush 3 年之前
committed by GitHub
父節點
當前提交
10be9486ff
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4AEE18F83AFDEB23
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      wiringPi/wiringPi.c

+ 2
- 1
wiringPi/wiringPi.c 查看文件

@@ -2284,7 +2284,8 @@ int wiringPiSetup (void)

if ((model == PI_MODEL_CM) ||
(model == PI_MODEL_CM3) ||
(model == PI_MODEL_CM3P))
(model == PI_MODEL_CM3P) ||
(model == PI_MODEL_CM4))
wiringPiMode = WPI_MODE_GPIO ;
else
wiringPiMode = WPI_MODE_PINS ;


Loading…
取消
儲存