diff --git a/HexGenerator/Source/Tools/CommandRunner.cpp b/HexGenerator/Source/Tools/CommandRunner.cpp index a5a170538..fdac5c57f 100644 --- a/HexGenerator/Source/Tools/CommandRunner.cpp +++ b/HexGenerator/Source/Tools/CommandRunner.cpp @@ -128,20 +128,7 @@ int build_hexfile( }); return 1; }; - char buffer[262144]; - std::string data; - std::string result; - int dist=0; - int size; - - //TIME_START - while(!feof(pipe)) { - size=(int)fread(buffer,1,262144, pipe); //cout< /dev/null 2>&1 rm $program.elf > /dev/null 2>&1 # Also putting this behind the gui-wall -if [[ $gui == "gui" ]]; then - mv "$program.hex" "../$program-$board.hex" +if [[ $gui == "gui" ]]; then + CATEGORY="$(basename ${PWD})" # hex_file = settings.path + m_category + "-" + m_name + ("-" + board + ".hex").c_str(); + mv "$program.hex" "../../${CATEGORY}-$program-$board.hex" fi \ No newline at end of file