Browse code

settings -> Claysettings

Louis authored on18/11/2021 12:17:16
Showing2 changed files
... ...
@@ -33,7 +33,7 @@ time_t current_time;
33 33
 static char * msg;
34 34
 
35 35
 // An instance of the struct
36
-Settings settings;
36
+ClaySettings settings;
37 37
 
38 38
 
39 39
 // Initialize the default settings
... ...
@@ -311,7 +311,7 @@ static void inbox_received_callback(DictionaryIterator *iter, void *context) {
311 311
 static void init(void) {
312 312
   
313 313
   prv_load_settings();
314
-  
314
+
315 315
   // Open AppMessage
316 316
   app_message_open(inbox_size, outbox_size);
317 317
   
... ...
@@ -5,11 +5,11 @@
5 5
 #define SETTINGS_KEY 1
6 6
 
7 7
 // Define our settings struct
8
-typedef struct Settings {
8
+typedef struct ClaySettings {
9 9
   char username;
10 10
   char password;
11 11
   char server;
12
-} Settings;
12
+} __attribute__((__packed__)) ClaySettings;
13 13
 
14 14
 //Define our Appkey enums
15 15
 typedef enum {