diff --git a/firmware/util/cyclic_buffer.h b/firmware/util/cyclic_buffer.h index cca2069a45..7769c6a3c1 100644 --- a/firmware/util/cyclic_buffer.h +++ b/firmware/util/cyclic_buffer.h @@ -71,7 +71,7 @@ cyclic_buffer::cyclic_buffer(int size) { template void cyclic_buffer::baseC(int size) { currentIndex = 0; - memset(elements, 0, sizeof(elements)); + memset((void*)&elements, 0, sizeof(elements)); setSize(size); }