This commit is contained in:
2025-09-18 17:44:23 +03:00
parent 83b7e0d924
commit f5039a329b
4 changed files with 155 additions and 24 deletions

View File

@@ -89,8 +89,8 @@ public:
std::string EncoderXDevPath;
std::string EncoderYDevPath;
conf_t devConfig;
hardware_configuration_t hwConfig;
conf_t devConfig; // devices paths and PIDs parameters
hardware_configuration_t hwConfig; // EEPROM-located configuration
std::chrono::milliseconds pollingInterval{300}; // hardware polling interval
std::chrono::milliseconds pollingTimeout{30000}; // hardware polling timeout
@@ -121,7 +121,13 @@ public:
error_t hardwareInit();
void hardwareUpdateConfig(conf_t cfg);
void hardwareUpdateConfig(hardware_configuration_t cfg);
// save config to EEPROM
error_t hardwareUpdateConfig(hardware_configuration_t cfg);
// load config from EEPROM
error_t hardwareUpdateConfig();
hardware_config_t hardwareConfig() const;
private:
hardware_config_t _hardwareConfig;