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
This commit is contained in:
Guðni Már Gilbert 2023-01-27 21:40:55 +00:00 committed by DRracer
parent 2ced00f21c
commit 876ea6c228
1 changed files with 1 additions and 2 deletions

View File

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