Open a file to write to
| 1772 | |
| 1773 | // Open a file to write to |
| 1774 | bool StringParser::OpenFileToWrite(const char *_ecv_array directory, const char *_ecv_array fileName, const FilePosition size, const bool binaryWrite, const uint32_t fileCRC32) noexcept |
| 1775 | { |
| 1776 | fileBeingWritten = reprap.GetPlatform().OpenFile(directory, fileName, OpenMode::writeWithCrc); |
| 1777 | eofStringCounter = 0; |
| 1778 | writingFileSize = size; |
| 1779 | if (fileBeingWritten == nullptr) |
| 1780 | { |
| 1781 | return false; |
| 1782 | } |
| 1783 | |
| 1784 | crc32 = fileCRC32; |
| 1785 | binaryWriting = binaryWrite; |
| 1786 | return true; |
| 1787 | } |
| 1788 | |
| 1789 | // Write the current line of GCode to file |
| 1790 | void StringParser::WriteToFile() noexcept |