| 8 | |
| 9 | namespace Configuration { |
| 10 | GCodeParam::GCodeParam(std::string_view key, float& iovalue, bool get) : setting_(key), _iovalue(iovalue), _get(get) { |
| 11 | // Remove leading '/' if it is present |
| 12 | if (setting_.front() == '/') { |
| 13 | setting_.remove_prefix(1); |
| 14 | } |
| 15 | // Also remove trailing '/' if it is present |
| 16 | if (setting_.back() == '/') { |
| 17 | setting_.remove_suffix(1); |
| 18 | } |
| 19 | |
| 20 | start_ = setting_; |
| 21 | } |
| 22 | |
| 23 | void GCodeParam::error() { |
| 24 | Assert(false, "Non-numeric config item"); |
nothing calls this directly
no outgoing calls
no test coverage detected