From a424c6ff39899f4a58ba03023ec6c4e4af28ec83 Mon Sep 17 00:00:00 2001 From: Markus Wick Date: Thu, 10 Oct 2013 01:11:55 +0200 Subject: [PATCH] create /dff before writing file. So empty sd card would work --- source/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/main.cpp b/source/main.cpp index 67239f9..f3206fa 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -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)