Fix a memset pointer cast (#14823)

This commit is contained in:
Giuliano Zaro 2019-08-05 05:06:36 +02:00 committed by Scott Lahteine
parent 4e58f9387a
commit d493cafc4a

View file

@ -163,7 +163,7 @@ void initISR(timer16_Sequence_t timer) {
SYNC(tc->COUNT16.SYNCBUSY.bit.CTRLB); SYNC(tc->COUNT16.SYNCBUSY.bit.CTRLB);
// Reset all servo indexes // Reset all servo indexes
memset(currentServoIndex, 0xFF, sizeof(currentServoIndex)); memset((void *)currentServoIndex, 0xFF, sizeof(currentServoIndex));
// Configure interrupt request // Configure interrupt request
NVIC_ClearPendingIRQ(SERVO_IRQn); NVIC_ClearPendingIRQ(SERVO_IRQn);