create /dff before writing file. So empty sd card would work

This commit is contained in:
Markus Wick
2013-10-10 01:11:55 +02:00
parent bf1216bdec
commit a424c6ff39

View File

@@ -393,6 +393,7 @@ void ReadStreamedDff(int socket)
int32_t size = ntohl(n_size);
printf("About to read %d bytes of dff data!", size);
mkdir("sd:/dff", 0777);
FILE* file = fopen("sd:/dff/test.dff", "wb"); // TODO: Change!
if (file == NULL)