Merge pull request #19 from Glacierty/master

record
pull/20/head
0x1abin 4 years ago committed by GitHub
commit 218f9c86c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -129,6 +129,8 @@ void button_handler(struct Button* handle)
} else {
handle->state = 0;
}
}else if(handle->ticks > SHORT_TICKS){ // long press up
handle->state = 0;
}
break;
@ -177,6 +179,7 @@ void button_stop(struct Button* handle)
if (entry == handle) {
*curr = entry->next;
// free(entry);
return;//glacier add 2021-8-18
} else
curr = &entry->next;
}

Loading…
Cancel
Save