Update created code.py file formatting.

This commit is contained in:
Kattni Rembor 2021-01-11 16:09:05 -05:00
parent 55c80754c7
commit 9e9291777f
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ static void make_sample_code_file(FATFS *fatfs) {
#if CIRCUITPY_FULL_BUILD #if CIRCUITPY_FULL_BUILD
FIL fs; FIL fs;
UINT char_written = 0; UINT char_written = 0;
const byte buffer[] = "print('Hello World!')\n"; const byte buffer[] = "print("Hello World!")\n";
//Create or modify existing code.py file //Create or modify existing code.py file
f_open(fatfs, &fs, "/code.py", FA_WRITE | FA_CREATE_ALWAYS); f_open(fatfs, &fs, "/code.py", FA_WRITE | FA_CREATE_ALWAYS);
f_write(&fs, buffer, sizeof(buffer) - 1, &char_written); f_write(&fs, buffer, sizeof(buffer) - 1, &char_written);