Reset timer when releasing _pew

This commit is contained in:
Radomir Dopieralski 2018-09-29 20:51:32 +02:00
parent 59f63eaef6
commit 48f0a5163e

View File

@ -117,6 +117,7 @@ void pew_init() {
}
void pew_reset(void) {
MP_STATE_VM(pew_singleton) = NULL;
tc_insts[pewpew_tc_index]->COUNT16.CTRLA.bit.ENABLE = 0;
pewpew_tc_index = 0xff;
MP_STATE_VM(pew_singleton) = NULL;
}