From 71aa89490e4252c3f773eea498d874bb4d69af20 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Mon, 19 Sep 2005 14:22:30 +0000 Subject: [PATCH] Make the device code received unsigned, so it wouldn't sign-extend if it is beyond 0x80. git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk@517 81a1dc3b-b13d-400b-aceb-764788c761c2 --- avrdude/ChangeLog | 5 +++++ avrdude/butterfly.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/avrdude/ChangeLog b/avrdude/ChangeLog index 6b3747fc..6069b1ef 100644 --- a/avrdude/ChangeLog +++ b/avrdude/ChangeLog @@ -1,3 +1,8 @@ +2005-09-19 Joerg Wunsch + + * butterfly.c (butterfly_initialize): make the device code unsigned so + it wouldn't sign-extend when >= 0x80. + 2005-09-18 Joerg Wunsch Add the serial bit-bang driver, contributed by Michael Holzt. diff --git a/avrdude/butterfly.c b/avrdude/butterfly.c index 32809323..313b62ea 100644 --- a/avrdude/butterfly.c +++ b/avrdude/butterfly.c @@ -226,7 +226,7 @@ static int butterfly_initialize(PROGRAMMER * pgm, AVRPART * p) char hw[2]; char buf[10]; char type; - char c; + unsigned char c; int dev_supported = 0; no_show_func_info();