Files
CYD-Klipper/CYD-Klipper-Display/src/conf/global_config.h
2023-11-12 00:18:54 +01:00

34 lines
705 B
C

#ifndef _GLOBAL_CONFIG_INIT
#define _GLOBAL_CONFIG_INIT
#define CONFIG_VERSION 80
typedef struct _GLOBAL_CONFIG {
unsigned char version;
union {
unsigned char raw;
struct {
bool screenCalibrated : 1;
bool wifiConfigured : 1;
bool ipConfigured : 1;
};
};
float screenCalXOffset;
float screenCalXMult;
float screenCalYOffset;
float screenCalYMult;
char wifiSSID[32];
char wifiPassword[64];
char klipperHost[64];
unsigned short klipperPort;
} GLOBAL_CONFIG;
extern GLOBAL_CONFIG global_config;
void WriteGlobalConfig();
void VerifyVersion();
void LoadGlobalConfig();
#endif // !_GLOBAL_CONFIG_INIT