Ika Shouyu Poppoyaki - LPC82x supported

Dependencies:   MODSERIAL mbed

Fork of ika_shouyu_poppoyaki by Tedd OKANO

Revision:
28:689c3880e0e4
Parent:
27:2b5c1eb39bb5
Child:
29:96e28bc1bd99
--- a/verification.cpp	Thu Sep 19 01:08:20 2013 +0000
+++ b/verification.cpp	Fri Sep 20 00:40:08 2013 +0000
@@ -5,6 +5,8 @@
 #include    "serial_utilities.h"
 #include    "writing.h"
 #include    "ika.h"
+#include    "error_code.h"
+
 
 int     verify_binary_data( FILE *fp );
 int     verify_uucoded_data( FILE *fp );
@@ -37,10 +39,10 @@
     flash_reading_size  = 128;
 
     if ( NULL == (bf    = (char *)malloc( flash_reading_size * sizeof( char ) )) )
-        error( "malloc error happened (in verify process, file data buffer)\r\n" );
+        return( ERROR_AT_MALLOC_FOR_VERIFY_FILE_BUFF );
 
     if ( NULL == (br    = (char *)malloc( flash_reading_size * sizeof( char ) )) )
-        error( "malloc error happened (in verify process, read data buffer)\r\n" );
+        return( ERROR_AT_MALLOC_FOR_VERIFY_DATA_BUFF );
 
 
     while ( size    = fread( bf, sizeof( char ), flash_reading_size, fp ) ) {