To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 1591
1590  |  1592
Subject: 
Re: what is a "single byte difference" error from makelx?
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 26 Dec 2000 03:44:24 GMT
Viewed: 
1628 times
  
In lugnet.robotics.rcx.legos, Ben Jackson writes:
While posting this I finally figured it out.  Someone added my battery code
to the kernel with the same function name, so that error must mean "your
code has a symbol which duplicates a kernel symbol".

Speaking of your battery code, I think we should add a demo program that
utilizes your function.

Rossz

P.S. Merry Christmas

// Displays the battery voltage level, e.g. "8.7v". Ok, so the "v"
// looks more like a "u".  It's a limitation of the display.

#include <conio.h>
#include <unistd.h>
#include <sys/battery.h>

int main(int argc, char **argv) {
int b = get_battery_mv() / 100;
cls();
cputc_0(32);
cputc_hex_3(b / 10);
cputc_hex_2(b % 10);
dlcd_show(LCD_3_DOT);
cputc_1('v');
sleep(2);
dlcd_hide(LCD_3_DOT);
cls();
return 0;
}



Message is in Reply To:
  what is a "single byte difference" error from makelx?
 
While compiling my simple battery voltage indicator after an upgrade from 0.2.2 to 0.2.5 (CVS from sourceforge) I get no errors during the build or ld and then: /ibm/legOS/sourcefor...til/makelx battery.ds1 battery.ds2 battery.lx single byte (...) (24 years ago, 25-Dec-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
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR