Change uint8_t* cast to long*

This commit is contained in:
Alex Voinea 2023-06-25 11:21:50 +02:00 committed by DRracer
parent 8149853fc9
commit e91ee4a5db
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}