|
Hello,
I recently received some code in the mail that when compiled and uploaded to
the RCX is supposed to give you the battery life. But when I go to compile it,
legOS/util/makelx gives me the following error message:
single byte different at +0x0031
which is followed by a (make) Error 255.
Anybody have any ideas?
Thanks,
Nils
|
|
Message has 1 Reply: | | Re: legOS battery life code
|
| Sorry! I forgot to post the code. Here it is: #include <dsensor.h> #include <dlcd.h> #include <conio.h> int get_battery_mv() { long b; int mv; b = BATTERY; b = ds_scale(b) * 0xABD4L; mv = b / 0x618L; return mv; } int main(int ac, char **av) { int b; (...) (24 years ago, 5-Jul-00, to lugnet.robotics.rcx.legos)
|
2 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|