MCPcopy Create free account
hub / github.com/Duet3D/RepRapFirmware / OpenFileToWrite

Method OpenFileToWrite

src/GCodes/GCodeBuffer/StringParser.cpp:1774–1787  ·  view source on GitHub ↗

Open a file to write to

Source from the content-addressed store, hash-verified

1772
1773// Open a file to write to
1774bool 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
1790void StringParser::WriteToFile() noexcept

Callers

nothing calls this directly

Calls 1

OpenFileMethod · 0.45

Tested by

no test coverage detected