浏览代码

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

pull/111/head
fanoush 3 年前
committed by GitHub
父节点
当前提交
10be9486ff
找不到此签名对应的密钥 GPG 密钥 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 ;


正在加载...
取消
保存