Connect to Klipper (although websockets are broken :( )

This commit is contained in:
suchmememanyskill
2023-11-12 00:18:54 +01:00
parent 20e1cdbc46
commit bf892d6855
9 changed files with 195 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
#ifndef _GLOBAL_CONFIG_INIT
#define _GLOBAL_CONFIG_INIT
#define CONFIG_VERSION 1
#define CONFIG_VERSION 80
typedef struct _GLOBAL_CONFIG {
unsigned char version;
@@ -10,6 +10,7 @@ typedef struct _GLOBAL_CONFIG {
struct {
bool screenCalibrated : 1;
bool wifiConfigured : 1;
bool ipConfigured : 1;
};
};
float screenCalXOffset;
@@ -19,6 +20,9 @@ typedef struct _GLOBAL_CONFIG {
char wifiSSID[32];
char wifiPassword[64];
char klipperHost[64];
unsigned short klipperPort;
} GLOBAL_CONFIG;
extern GLOBAL_CONFIG global_config;