Merge pull request #26 from Junbo-Zheng/fix_warning

multi_button.c: add the default keyword for the switch case
pull/28/merge
0x1abin 3 years ago committed by GitHub
commit 0610f1533a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -148,6 +148,9 @@ void button_handler(struct Button* handle)
handle->state = 0; //reset
}
break;
default:
handle->state = 0; //reset
break;
}
}
@ -199,4 +202,3 @@ void button_ticks()
button_handler(target);
}
}

Loading…
Cancel
Save