From 5c6c12dc3ae3d0a68b7c19638cf2ac39645e896b Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 14 Jan 2018 20:53:59 -0600 Subject: [PATCH] Patch EEPROM for 32-bit --- Marlin/configuration_store.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp index 72f6d313f..26cbee9a0 100644 --- a/Marlin/configuration_store.cpp +++ b/Marlin/configuration_store.cpp @@ -71,6 +71,8 @@ #include "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,9 +172,9 @@ typedef struct SettingsDataStruct { // // ULTIPANEL // - int lcd_preheat_hotend_temp[2], // M145 S0 H - lcd_preheat_bed_temp[2], // M145 S0 B - lcd_preheat_fan_speed[2]; // M145 S0 F + 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 // // PIDTEMP @@ -247,6 +249,8 @@ typedef struct SettingsDataStruct { } SettingsData; +#pragma pack(pop) + MarlinSettings settings; #if ENABLED(AUTO_BED_LEVELING_BILINEAR)