Skip to content

Commit 1b54f04

Browse files
committed
PR review requested changes.
Per hathach's request, remove built-in test option. Per hathach's request, remote __TIME__ from info file.
1 parent 04fc396 commit 1b54f04

File tree

1 file changed

+1
-50
lines changed

1 file changed

+1
-50
lines changed

src/usb/uf2/ghostfat.c

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
#include "bootloader_settings.h"
1212
#include "bootloader.h"
1313

14-
// Uncomment the next line to create an additional 20 files in root.
15-
// #define CREATE_MANY_FILES
16-
1714
typedef struct {
1815
uint8_t JumpInstruction[3];
1916
uint8_t OEMInfo[8];
@@ -69,8 +66,7 @@ const char infoUf2File[] = //
6966
"Model: " PRODUCT_NAME "\r\n"
7067
"Board-ID: " BOARD_ID "\r\n"
7168
"Bootloader: " BOOTLOADER_ID "\r\n"
72-
"Date: " __DATE__ "\r\n"
73-
"Time: " __TIME__ "\r\n";
69+
"Date: " __DATE__ "\r\n";
7470

7571
const char indexFile[] = //
7672
"<!doctype html>\n"
@@ -82,56 +78,11 @@ const char indexFile[] = //
8278
"</body>"
8379
"</html>\n";
8480

85-
#ifdef CREATE_MANY_FILES
86-
const char dataFile00[] = "This is the data for File 00\r\n";
87-
const char dataFile01[] = "This is the data for File 01\r\n";
88-
const char dataFile02[] = "This is the data for File 02\r\n";
89-
const char dataFile03[] = "This is the data for File 03\r\n";
90-
const char dataFile04[] = "This is the data for File 04\r\n";
91-
const char dataFile05[] = "This is the data for File 05\r\n";
92-
const char dataFile06[] = "This is the data for File 06\r\n";
93-
const char dataFile07[] = "This is the data for File 07\r\n";
94-
const char dataFile08[] = "This is the data for File 08\r\n";
95-
const char dataFile09[] = "This is the data for File 09\r\n";
96-
const char dataFile10[] = "This is the data for File 10\r\n";
97-
const char dataFile11[] = "This is the data for File 11\r\n";
98-
const char dataFile12[] = "This is the data for File 12\r\n";
99-
const char dataFile13[] = "This is the data for File 13\r\n";
100-
const char dataFile14[] = "This is the data for File 14\r\n";
101-
const char dataFile15[] = "This is the data for File 15\r\n";
102-
const char dataFile16[] = "This is the data for File 16\r\n";
103-
const char dataFile17[] = "This is the data for File 17\r\n";
104-
const char dataFile18[] = "This is the data for File 18\r\n";
105-
const char dataFile19[] = "This is the data for File 19\r\n";
106-
#endif // CREATE_MANY_FILES
107-
10881
// WARNING -- code presumes only one NULL .content for .UF2 file
10982
// and requires it be the last element of the array
11083
static struct TextFile const info[] = {
11184
{.name = "INFO_UF2TXT", .content = infoUf2File},
11285
{.name = "INDEX HTM", .content = indexFile},
113-
#ifdef CREATE_MANY_FILES
114-
{.name = "FILE00 TXT", .content = dataFile00},
115-
{.name = "FILE01 TXT", .content = dataFile01},
116-
{.name = "FILE02 TXT", .content = dataFile02},
117-
{.name = "FILE03 TXT", .content = dataFile03},
118-
{.name = "FILE04 TXT", .content = dataFile04},
119-
{.name = "FILE05 TXT", .content = dataFile05},
120-
{.name = "FILE06 TXT", .content = dataFile06},
121-
{.name = "FILE07 TXT", .content = dataFile07},
122-
{.name = "FILE08 TXT", .content = dataFile08},
123-
{.name = "FILE09 TXT", .content = dataFile09},
124-
{.name = "FILE10 TXT", .content = dataFile10},
125-
{.name = "FILE11 TXT", .content = dataFile11},
126-
{.name = "FILE12 TXT", .content = dataFile12},
127-
{.name = "FILE13 TXT", .content = dataFile13},
128-
{.name = "FILE14 TXT", .content = dataFile14},
129-
{.name = "FILE15 TXT", .content = dataFile15},
130-
{.name = "FILE16 TXT", .content = dataFile16},
131-
{.name = "FILE17 TXT", .content = dataFile17},
132-
{.name = "FILE18 TXT", .content = dataFile18},
133-
{.name = "FILE19 TXT", .content = dataFile19},
134-
#endif
13586
{.name = "CURRENT UF2"},
13687
};
13788

0 commit comments

Comments
 (0)