みや / mbed_recent_nicovideo_display_pub

display recentest video in niconico.

Dependencies:   EthernetInterface GraphicOLED NokiaLCD mbed-rtos mbed picojson

Files at this revision

API Documentation at this revision

Comitter:
mia_0032
Date:
Wed Dec 17 13:19:28 2014 +0000
Parent:
0:1e0d84ef27ec
Commit message:
fix comment.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Wed Dec 17 13:10:57 2014 +0000
+++ b/main.cpp	Wed Dec 17 13:19:28 2014 +0000
@@ -102,7 +102,7 @@
             fwrite(buffer,1,ret,pFile);
         } else {
             for(int i=1; i<ret; i++) {
-                if(buffer[i-1]==0x42 && buffer[i]==0x4D) { //jpg file starts from FFD8
+                if(buffer[i-1]==0x42 && buffer[i]==0x4D) { //bmp file starts from 424D
                     pc.printf("found start.\n\r");
                     fwrite(&buffer[i-1],1,ret-i+1,pFile);
                     found_start = true;