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

Method GCodeParam

FluidNC/src/Configuration/GCodeParam.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9namespace 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");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected