diff options
Diffstat (limited to 'firmware/test')
-rw-r--r-- | firmware/test/i2c/gendata.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/firmware/test/i2c/gendata.c b/firmware/test/i2c/gendata.c index 03bb002b88..dc5989ee66 100644 --- a/firmware/test/i2c/gendata.c +++ b/firmware/test/i2c/gendata.c | |||
@@ -10,22 +10,22 @@ int main(int argc, char *argv[]) | |||
10 | 10 | ||
11 | if(f) | 11 | if(f) |
12 | { | 12 | { |
13 | if(fread(buf, 1, 128000, f) < 128000) | 13 | if(fread(buf, 1, 128000, f) < 128000) |
14 | { | 14 | { |
15 | fprintf(stderr, "FAN!\n"); | 15 | fprintf(stderr, "FAN!\n"); |
16 | exit(1); | 16 | exit(1); |
17 | } | 17 | } |
18 | 18 | ||
19 | printf("int mp3datalen = 128000;\n"); | 19 | printf("int mp3datalen = 128000;\n"); |
20 | printf("unsigned char mp3data[128000] =\n{"); | 20 | printf("unsigned char mp3data[128000] =\n{"); |
21 | for(i = 0;i < 128000;i++) | 21 | for(i = 0;i < 128000;i++) |
22 | { | 22 | { |
23 | if(i % 8 == 0) | 23 | if(i % 8 == 0) |
24 | { | 24 | { |
25 | printf("\n"); | 25 | printf("\n"); |
26 | } | 26 | } |
27 | printf("0x%02x, ", buf[i]); | 27 | printf("0x%02x, ", buf[i]); |
28 | } | 28 | } |
29 | printf("};\n"); | 29 | printf("};\n"); |
30 | } | 30 | } |
31 | } | 31 | } |