executor: fail better :)

This commit is contained in:
schneider 2011-08-05 19:57:47 +02:00
parent aa986a15c8
commit 0fada18915
1 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,8 @@ uint8_t execute_file (const char * fname){
if( readbytes & 0x3 ){ if( readbytes & 0x3 ){
lcdPrint("readbytes&3"); lcdPrint("readbytes&3");
lcdRefresh(); lcdRefresh();
while(1); getInputWait();
getInputRelease();
return -1; return -1;
} }
uint32_t mac[4]; uint32_t mac[4];
@ -68,7 +69,8 @@ uint8_t execute_file (const char * fname){
lcdPrintIntHex(mac[2]); lcdNl(); lcdPrintIntHex(mac[2]); lcdNl();
lcdPrintIntHex(mac[3]); lcdNl(); lcdPrintIntHex(mac[3]); lcdNl();
lcdRefresh(); lcdRefresh();
while(1); getInputWait();
getInputRelease();
return -1; return -1;
} }
data = (uint32_t*)dst; data = (uint32_t*)dst;