Fix EEPROM SettingsData for 32-bit architectures
This commit is contained in:
parent
da600e5fbe
commit
cfd989d7c5
@ -71,6 +71,8 @@
|
||||
#include "../feature/fwretract.h"
|
||||
#endif
|
||||
|
||||
#pragma pack(push, 1) // No padding between variables
|
||||
|
||||
typedef struct PID { float Kp, Ki, Kd; } PID;
|
||||
typedef struct PIDC { float Kp, Ki, Kd, Kc; } PIDC;
|
||||
|
||||
@ -170,7 +172,7 @@ typedef struct SettingsDataStruct {
|
||||
//
|
||||
// ULTIPANEL
|
||||
//
|
||||
int lcd_preheat_hotend_temp[2], // M145 S0 H
|
||||
int16_t lcd_preheat_hotend_temp[2], // M145 S0 H
|
||||
lcd_preheat_bed_temp[2], // M145 S0 B
|
||||
lcd_preheat_fan_speed[2]; // M145 S0 F
|
||||
|
||||
@ -247,6 +249,8 @@ typedef struct SettingsDataStruct {
|
||||
|
||||
} SettingsData;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
MarlinSettings settings;
|
||||
|
||||
uint16_t MarlinSettings::datasize() { return sizeof(SettingsData); }
|
||||
|
Loading…
Reference in New Issue
Block a user