---------------------------------------------------------------------- Patch name: patch.hwversion-chars Author: Bryce Denney Date: Sun Mar 3 21:19:33 EST 2002 Detailed description: The hardware version number has a teeny bug. The constants HW_MAJOR and HW_MINOR are defined as ascii numbers like '1' (0x31). But then in the code that reports the hardware version to the programmer software, it adds 0x30 again. This patch removes the +0x30 so that the hardware version is reported right. Patch was created with: diff -u Instructions: Go to whatever directory avr910.asm is in. Type "patch < THIS_PATCH_FILE". ---------------------------------------------------------------------- Index: avr910.asm =================================================================== RCS file: /usr/src/CVSROOT/designs/avr910/avr910.asm,v retrieving revision 1.2 diff -u -b -r1.2 avr910.asm --- avr910.asm 2002/01/16 22:30:56 1.2 +++ avr910.asm 2002/03/02 07:48:00 @@ -669,9 +676,9 @@ w2: cpi u_data,0x76 ;'v' Return hardware version brne w3 - ldi u_data,0x30+HW_MAJOR ; putc(0x30+HW_MAJOR); + ldi u_data,HW_MAJOR ; putc(HW_MAJOR); rcall putc - ldi u_data,0x30+HW_MINOR ; putc(0x30+HW_MINOR); + ldi u_data,HW_MINOR ; putc(HW_MINOR); rcall putc rjmp waitcmd