| 106 | void Setting::init() {} |
| 107 | |
| 108 | IntSetting::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 | |
| 123 | void IntSetting::load() { |
| 124 | if (nvs.get_i32(_keyName, &_storedValue)) { |
nothing calls this directly
no outgoing calls
no test coverage detected