MCPcopy Create free account
hub / github.com/UtilitechAS/amsreader-firmware / clearUiConfig

Method clearUiConfig

lib/AmsConfiguration/src/AmsConfiguration.cpp:802–820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

800}
801
802void AmsConfiguration::clearUiConfig(UiConfig& config) {
803 // 1 = Enable, 2 = Auto, 0 = Disable
804 config.showImport = 1;
805 config.showExport = 2;
806 config.showVoltage = 2;
807 config.showAmperage = 2;
808 config.showReactive = 0;
809 config.showRealtime = 1;
810 config.showPeaks = 2;
811 config.showPricePlot = 2;
812 config.showDayPlot = 1;
813 config.showMonthPlot = 1;
814 config.showTemperaturePlot = 2;
815 config.showRealtimePlot = 2;
816 config.showPerPhasePower = 2;
817 config.showPowerFactor = 2;
818 config.darkMode = 2;
819 memset(config.language, 0, 3);
820}
821
822bool AmsConfiguration::isUiLanguageChanged() {
823 return uiLanguageChanged;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected