From d493cafc4a6b42d252c86fd96a23309ba19ef571 Mon Sep 17 00:00:00 2001 From: Giuliano Zaro <3684609+GMagician@users.noreply.github.com> Date: Mon, 5 Aug 2019 05:06:36 +0200 Subject: [PATCH] Fix a memset pointer cast (#14823) --- Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp b/Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp index 1e3c4f016..16ba8369e 100644 --- a/Marlin/src/HAL/HAL_SAMD51/Servo_SAMD51.cpp +++ b/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);