mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-06-21 06:21:47 +00:00
Add a ZERO macro to clear arrays
This commit is contained in:
parent
627f9d5285
commit
5f5a55a0de
6 changed files with 8 additions and 7 deletions
Marlin
|
@ -674,7 +674,7 @@ bool SdBaseFile::open(SdBaseFile* dirFile,
|
|||
index = 0;
|
||||
}
|
||||
// initialize as empty file
|
||||
memset(p, 0, sizeof(dir_t));
|
||||
ZERO(p);
|
||||
memcpy(p->name, dname, 11);
|
||||
|
||||
// set timestamps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue