From 876ea6c2289da667b96c1545685c138862780e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gu=C3=B0ni=20M=C3=A1r=20Gilbert?= Date: Fri, 27 Jan 2023 21:40:55 +0000 Subject: [PATCH] Change block buffer fan speed to one byte It's only assigned to variables which are uint8_t Change in memory: Flash: -10 bytes SRAM: -16 bytes --- Firmware/planner.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Firmware/planner.h b/Firmware/planner.h index 5c4828146..8785e794e 100644 --- a/Firmware/planner.h +++ b/Firmware/planner.h @@ -103,8 +103,7 @@ typedef struct { uint32_t initial_rate; // The jerk-adjusted step rate at start of block uint32_t final_rate; // The minimal rate at exit uint32_t acceleration_steps_per_s2; // acceleration steps/sec^2 - //FIXME does it have to be int? Probably uint8_t would be just fine. Need to change in other places as well - int fan_speed; + uint8_t fan_speed; // Print fan speed, ranges from 0 to 255 volatile char busy;