fix one weird bug

This commit is contained in:
2019-08-05 20:07:56 +03:00
parent cfbfac6cb7
commit 48924622ab
2 changed files with 2 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ platform = espressif8266
board = esp12e board = esp12e
framework = arduino framework = arduino
monitor_speed = 115200 monitor_speed = 115200
board_build.f_cpu = 80000000L board_build.f_cpu = 160000000L
upload_resetmethod = nodemcu upload_resetmethod = nodemcu
upload_port=/dev/ttyUSB0 upload_port=/dev/ttyUSB0

View File

@@ -4,9 +4,8 @@
#include "ConfigManager.h" #include "ConfigManager.h"
#include "GCodeParser.h" #include "GCodeParser.h"
Command bufcmd;
Command parseGCode(std::string gcode) { Command parseGCode(std::string gcode) {
Command bufcmd;
char commandString[50]; char commandString[50];
std::unordered_map<char, float> argsMap; std::unordered_map<char, float> argsMap;