18 lines
371 B
C++
18 lines
371 B
C++
#pragma once
|
|
|
|
#include <cstring>
|
|
|
|
#include "types.hpp"
|
|
|
|
constexpr int MAX_DEVICES = 8;
|
|
constexpr int DEVICE_XML_MAX = 2048;
|
|
|
|
struct device_t
|
|
{
|
|
char mac[18]; // "AA:BB:CC:DD:EE:FF\0"
|
|
bool active; // Slot in use
|
|
char xml_layout[DEVICE_XML_MAX]; // LVGL XML string for the current screen
|
|
};
|
|
|
|
internal device_t g_Devices[MAX_DEVICES] = {};
|