Browse Source

Fix a memset pointer cast (#14823)

pull/1/head
Giuliano Zaro 5 years ago
committed by Scott Lahteine
parent
commit
d493cafc4a
  1. 2
      Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp

2
Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp

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

Loading…
Cancel
Save