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

Method enumToString

FluidNC/src/Settings.cpp:368–376  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368const char* EnumSetting::enumToString(int8_t value) {
369 for (enum_opt_t::const_iterator it = _options->begin(); it != _options->end(); it++) {
370 if (it->second == value) {
371 return it->first;
372 }
373 }
374 showList();
375 return "???";
376}
377const char* EnumSetting::getDefaultString() {
378 return enumToString(_defaultValue);
379}

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected