MCPcopy Create free account
hub / github.com/bdring/FluidNC / IntSetting

Method IntSetting

FluidNC/src/Settings.cpp:108–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106void Setting::init() {}
107
108IntSetting::IntSetting(const char* description,
109 type_t type,
110 permissions_t permissions,
111 const char* grblName,
112 const char* name,
113 int32_t defVal,
114 int32_t minVal,
115 int32_t maxVal,
116 bool currentIsNvm) :
117 Setting(description, type, permissions, grblName, name),
118 _defaultValue(defVal), _currentValue(defVal), _minValue(minVal), _maxValue(maxVal), _currentIsNvm(currentIsNvm) {
119 _storedValue = std::numeric_limits<int32_t>::min();
120 load();
121}
122
123void IntSetting::load() {
124 if (nvs.get_i32(_keyName, &_storedValue)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected