Dependencies:   mbed FATFileSystem

Revision:
26:716bcd47f3ca
Parent:
21:f3b0ce18b44f
--- a/N5110_Modded/Bitmap.cpp	Thu May 09 13:27:19 2019 +0000
+++ b/N5110_Modded/Bitmap.cpp	Fri May 10 21:25:27 2019 +0000
@@ -1,5 +1,4 @@
 #include "Bitmap.h"
-Serial d(USBTX,USBRX);
 
 //Total New Process time = 0.04 Seconds (still a bit long)
 //Image data is Stored in DWORDS (32-bits) not Bytes (8-bits)
@@ -16,7 +15,7 @@
 void Bitmap::renderBMP(const char *path, unsigned int const x, unsigned int const y) {
     FILE *bmp = fopen(path,"r");
     if (bmp == NULL) {
-        d.printf("fail");
+        std::cerr << "failure " << path << std::endl;
     }
     unsigned char *buffer = (unsigned char*)std::malloc(4 * sizeof(unsigned char));
     this->readDIB(bmp);  //Reading DIB header
@@ -48,7 +47,7 @@
 }
 
 void Bitmap::swapEndian(FILE *bmp, unsigned char *buffer, std::bitset<32> &bits) {
-    std::fread(buffer,1,4,bmp);
+        std::fread(buffer,1,4,bmp);
         //Endian Swap
         bits = buffer[0];
         bits = (bits << 8) | (std::bitset<32>)buffer[1];