mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-16 23:07:34 +00:00
Fix typo and add config.yaml example for ExtraPins
This commit is contained in:
@@ -105,6 +105,8 @@ Lora:
|
||||
|
||||
GPS:
|
||||
# SerialPath: /dev/ttyS0
|
||||
# ExtraPins:
|
||||
# - 22
|
||||
|
||||
### Specify I2C device, or leave blank for none
|
||||
|
||||
|
||||
@@ -488,7 +488,7 @@ void portduinoSetup()
|
||||
}
|
||||
|
||||
for (auto i : portduino_config.extra_pins) {
|
||||
if (i.enabled && i.gpiochip > max_GPIO)
|
||||
if (i.enabled && i.pin > max_GPIO)
|
||||
max_GPIO = i.pin;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user