mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 08:47:49 +01:00
add ignoreRpm option, because gcodetools default is 400
This commit is contained in:
@@ -8,7 +8,8 @@ const std::unordered_map<std::string, std::string> defaults{
|
||||
{"wifiMode", "ap"},
|
||||
{"wifiSSID", defSSID},
|
||||
{"wifiPass", defPass},
|
||||
{"defRpm", "2"}}};
|
||||
{"defRpm", "2"},
|
||||
{"ignoreRpm", "yes"}}};
|
||||
|
||||
/*
|
||||
Max string length is 25
|
||||
|
||||
@@ -68,7 +68,7 @@ Command parseGCode(std::string gcode) {
|
||||
if (zIter != endIter) {
|
||||
bufcmd.arg3 = zIter->second;
|
||||
}
|
||||
if (fIter != endIter) {
|
||||
if (fIter != endIter && configManager.get("ignoreRpm") != "yes") {
|
||||
bufcmd.arg4 = fIter->second;
|
||||
} else {
|
||||
bufcmd.arg4 = atof(configManager.get("defRpm").c_str());
|
||||
|
||||
Reference in New Issue
Block a user