avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] uisp bug fix (sig byte read)


From: Theodore A. Roth
Subject: [avr-gcc-list] uisp bug fix (sig byte read)
Date: Mon, 8 Apr 2002 20:10:11 -0600 (MDT)

Hi Marek,

I've found a minor bug in uisp. It is reading the signature bytes of 
devices and assigning the values to the wrong variables. A fix is 
attached. I've tested this with an 8515 and a mega128 in an stk500 and 
the vendor_code, part_family and part_number are correctly set now.

Ted Roth

cat << EOF
diff -urpN uisp-20020303/src/Stk500.C uisp-20020303-sig-byte/src/Stk500.C
--- uisp-20020303/src/Stk500.C  Sat Aug 18 07:22:26 2001
+++ uisp-20020303-sig-byte/src/Stk500.C Mon Apr  8 20:01:09 2002
@@ -274,9 +274,9 @@ void TStk500::ReadSignature() {
 
   memcpy(buf, GetSignature, sizeof(GetSignature));
   Send(buf, sizeof(GetSignature), sizeof(GetSignature_Reply));
-  part_number = buf[1];
+  vendor_code = buf[1];
   part_family = buf[2];
-  vendor_code = buf[3];
+  part_number = buf[3];
 }
 
 
EOF

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]