Skip to content

Commit 9f2250c

Browse files
committed
Manually applying PR craftmetrics#1
1 parent a06fba1 commit 9f2250c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

button.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ QueueHandle_t * button_init(unsigned long long pin_select) {
112112

113113
// Scan the pin map to determine number of pins
114114
pin_count = 0;
115-
for (int pin=0; pin<=36; pin++) {
115+
for (int pin=0; pin<=39; pin++) {
116116
if ((1ULL<<pin) & pin_select) {
117117
pin_count++;
118118
}
@@ -124,7 +124,7 @@ QueueHandle_t * button_init(unsigned long long pin_select) {
124124

125125
// Scan the pin map to determine each pin number, populate the state
126126
uint32_t idx = 0;
127-
for (int pin=0; pin<=36; pin++) {
127+
for (int pin=0; pin<=39; pin++) {
128128
if ((1ULL<<pin) & pin_select) {
129129
ESP_LOGI(TAG, "Registering button input: %d", pin);
130130
debounce[idx].pin = pin;

0 commit comments

Comments
 (0)