@@ -26,7 +26,6 @@ struct DeviceConfig {
2626
2727 // Alert/trigger output configuration
2828 bool alert_enabled; // Enable/disable alert output
29- uint8_t alert_pin; // GPIO pin for alert output (default: TRIGGER_OUT_LED)
3029 bool alert_on_cloud; // Trigger alert on cloud detection
3130 float alert_cloud_temp_threshold; // Cloud temperature threshold (°C)
3231 bool alert_on_light; // Trigger alert on high light (dawn/lights)
@@ -72,7 +71,6 @@ class ConfigManager {
7271
7372 // Alert defaults
7473 config.alert_enabled = false ;
75- config.alert_pin = 27 ; // TRIGGER_OUT_LED pin
7674 config.alert_on_cloud = true ;
7775 config.alert_cloud_temp_threshold = -10.0 ; // Alert if sky temp < -10°C (clouds)
7876 config.alert_on_light = true ;
@@ -137,7 +135,6 @@ class ConfigManager {
137135 float getSqmDarkCap () { return config.sqm_dark_cap ; }
138136 float getCloudThreshold () { return config.cloud_threshold ; }
139137 bool isAlertEnabled () { return config.alert_enabled ; }
140- uint8_t getAlertPin () { return config.alert_pin ; }
141138 bool isAlertOnCloud () { return config.alert_on_cloud ; }
142139 float getAlertCloudTempThreshold () { return config.alert_cloud_temp_threshold ; }
143140 bool isAlertOnLight () { return config.alert_on_light ; }
@@ -152,7 +149,6 @@ class ConfigManager {
152149 void setSqmDarkCap (float value) { config.sqm_dark_cap = value; }
153150 void setCloudThreshold (float value) { config.cloud_threshold = value; }
154151 void setAlertEnabled (bool value) { config.alert_enabled = value; }
155- void setAlertPin (uint8_t value) { config.alert_pin = value; }
156152 void setAlertOnCloud (bool value) { config.alert_on_cloud = value; }
157153 void setAlertCloudTempThreshold (float value) { config.alert_cloud_temp_threshold = value; }
158154 void setAlertOnLight (bool value) { config.alert_on_light = value; }
@@ -172,7 +168,6 @@ class ConfigManager {
172168 Serial.print (" # SQM Dark Cap: " ); Serial.println (config.sqm_dark_cap , 2 );
173169 Serial.print (" # Cloud Threshold: " ); Serial.println (config.cloud_threshold , 2 );
174170 Serial.print (" # Alert Enabled: " ); Serial.println (config.alert_enabled ? " YES" : " NO" );
175- Serial.print (" # Alert Pin: GPIO" ); Serial.println (config.alert_pin );
176171 Serial.print (" # Alert on Cloud: " ); Serial.println (config.alert_on_cloud ? " YES" : " NO" );
177172 Serial.print (" # Alert Cloud Temp Threshold: " ); Serial.print (config.alert_cloud_temp_threshold , 2 ); Serial.println (" °C" );
178173 Serial.print (" # Alert on Light: " ); Serial.println (config.alert_on_light ? " YES" : " NO" );
0 commit comments