New Fahrplan binary fixes 24bit pointer bug

This commit is contained in:
roy rocket 2011-12-30 01:10:26 +01:00
parent 4492b80976
commit 2782a05ca9
3 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,7 @@ void ram(void) {
lcdClear(); lcdClear();
DoString(0,0,"Fahrplan "); DoString(0,0,"Fahrplan ");
DoString(60,0,favers); DoString(60,0,favers);
DoString(0,16,"SW Rel. V0.004"); DoString(0,16,"SW Rel. V0.005");
if(filvers!=2) { if(filvers!=2) {
DoString(0,24,"Incompatible "); DoString(0,24,"Incompatible ");
DoString(0,32,"Binary. Get "); DoString(0,32,"Binary. Get ");
@ -148,7 +148,9 @@ void ram(void) {
f_lseek(&file,5); f_lseek(&file,5);
ob=evcur%256; ob=evcur%256;
res+=f_write(&file, (char *)&ob, 1, &readbytes); res+=f_write(&file, (char *)&ob, 1, &readbytes);
ob=evcur>>8; ob=(evcur>>8) % 256;
res+=f_write(&file, (char *)&ob, 1, &readbytes);
ob=evcur>>16;
res+=f_write(&file, (char *)&ob, 1, &readbytes); res+=f_write(&file, (char *)&ob, 1, &readbytes);
return; return;
case BTN_RIGHT: case BTN_RIGHT:

Binary file not shown.

Binary file not shown.