From e91ee4a5dbe27b4a644d184b2e9031209592126a Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Sun, 25 Jun 2023 11:21:50 +0200 Subject: [PATCH] Change uint8_t* cast to long* --- Firmware/stepper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/stepper.cpp b/Firmware/stepper.cpp index b3ea244af..5b859d013 100644 --- a/Firmware/stepper.cpp +++ b/Firmware/stepper.cpp @@ -1321,7 +1321,7 @@ void st_set_position(const long *pos) // which corresponds to a maximum repeat frequency of ~484kHz. // This blocking is safe in the context of a 10kHz stepper driver interrupt // or a 115200 Bd serial line receive interrupt, which will not trigger faster than 12kHz. - memcpy((uint8_t *)count_position, pos, sizeof(count_position)); + memcpy((long *)count_position, pos, sizeof(count_position)); CRITICAL_SECTION_END; }