| | Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
|
|
(...) now i tried to change //#define CONF_DSENSOR_VELOCITY //!< rotation sensor velocity to #define CONF_DSENSOR_VELOCITY //!< rotation sensor velocity because it use sys_time too. same error: /usr/local/bin/h8300...hi-hms-gcc -O2 -fno-builtin (...) (22 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
|
|
(...) To get rid of this error, find and replace all occurrences of sys_time with get_system_up_time(). If you look at include/time.h, you will find that the direct reading of the sys_time variable is not allowed anymore. There was a thread about (...) (22 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)
|
|
| | Re: /brickos-0.2.6.10/kernel/dsensor.c:360: `sys_time' undeclared (first use in this function)
|
|
i had the same problem a while back. I figured out that whit the new BrickOS, sys_time is replaced by get_system_up_time. So when you replace sys_time whit get_system_up_time, everything should work fine.(it worked for me, anyway) (22 years ago, 28-Apr-03, to lugnet.robotics.rcx.legos)
|