Nick Tarleton - 2002-07-10

Logged In: YES
user_id=437942

Aggh, forgot to include the patch! Copy this:

*** legOS/kernel/systime.c Mon Aug 14 16:43:26 2000
--- std/kernel/systime.c Wed Jul 3 17:14:18 2002
***************
*** 259,269 ****
/*! \param slice the timeslice. must be at least 5ms.
*/
void systime_set_timeslice(unsigned char slice) {
! if(slice>5) { // some minimum value
! tm_timeslice=slice;
! if(tm_current_slice>tm_timeslice)
! tm_current_slice=tm_timeslice;
! }
}

#endif
--- 259,267 ----
/*! \param slice the timeslice. must be at least 5ms.
*/
void systime_set_timeslice(unsigned char slice) {
! tm_timeslice=slice;
! if(tm_current_slice>tm_timeslice)
! tm_current_slice=tm_timeslice;
}

#endif
*** legOS/kernel/program.c Sun May 26 16:14:10 2002
--- std/kernel/program.c Tue Jul 2 16:23:18 2002
***************
*** 49,54 ****
--- 49,55 ----
#include <unistd.h>
#include <stdlib.h>

+ #include <lnp.h>
#include <sys/lnp.h>
#include <sys/lnp-logical.h>
#include <sys/dmotor.h>
***************
*** 425,430 ****
--- 426,439 ----
if ((c = getchar()) != KEY_VIEW) goto gotkey;
lcd_int(get_battery_mv());
if ((c = getchar()) != KEY_VIEW) goto gotkey;
+
+ cputs("lnp");
+ if ((c = getchar()) != KEY_VIEW) goto gotkey;
+ lcd_int(lnp_hostaddr >> 4);
+ if ((c = getchar()) != KEY_VIEW) goto gotkey;
+ cputw(lnp_hostaddr >> 4);
+ if ((c = getchar()) != KEY_VIEW) goto gotkey;
+
clear=1;
break;
}
*** legOS/kernel/conio.c Sun May 26 15:33:53 2002
--- std/kernel/conio.c Wed Jul 3 17:16:38 2002
***************
*** 158,164 ****
0x79, // 98 b
0x31, // 99 c
0x73, // 100 d
! 0x3d, // 101 E
0x1d, // 102 F
0x7c, // 103 G
0x59, // 104 h
--- 158,164 ----
0x79, // 98 b
0x31, // 99 c
0x73, // 100 d
! 0x3f, // 101 e
0x1d, // 102 F
0x7c, // 103 G
0x59, // 104 h