mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +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"},
|
{"wifiMode", "ap"},
|
||||||
{"wifiSSID", defSSID},
|
{"wifiSSID", defSSID},
|
||||||
{"wifiPass", defPass},
|
{"wifiPass", defPass},
|
||||||
{"defRpm", "2"}}};
|
{"defRpm", "2"},
|
||||||
|
{"ignoreRpm", "yes"}}};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Max string length is 25
|
Max string length is 25
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ Command parseGCode(std::string gcode) {
|
|||||||
if (zIter != endIter) {
|
if (zIter != endIter) {
|
||||||
bufcmd.arg3 = zIter->second;
|
bufcmd.arg3 = zIter->second;
|
||||||
}
|
}
|
||||||
if (fIter != endIter) {
|
if (fIter != endIter && configManager.get("ignoreRpm") != "yes") {
|
||||||
bufcmd.arg4 = fIter->second;
|
bufcmd.arg4 = fIter->second;
|
||||||
} else {
|
} else {
|
||||||
bufcmd.arg4 = atof(configManager.get("defRpm").c_str());
|
bufcmd.arg4 = atof(configManager.get("defRpm").c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user