From 986a2cbf10bdbe19688b9eb1b365ac3b328919ed Mon Sep 17 00:00:00 2001 From: travisutk Date: Wed, 26 May 2010 22:47:11 +0000 Subject: [PATCH] Fixed problem with Chipcon client guessing word size. The chip ID isn't properly read on the very first attempt, but it is on all subsequent. Thus, the warning was meaningless. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@571 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- firmware/apps/chipcon/chipcon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/apps/chipcon/chipcon.c b/firmware/apps/chipcon/chipcon.c index fac551c..73ccd2f 100644 --- a/firmware/apps/chipcon/chipcon.c +++ b/firmware/apps/chipcon/chipcon.c @@ -346,11 +346,13 @@ unsigned short cc_get_chip_id(){ case 0x01://CC1110 case 0x81://CC2510 case 0x91://CC2511 - flash_word_size=0x02; //debugstr("2 bytes/flash word"); + flash_word_size=0x02; break; default: - debugstr("Warning: Guessing flash word size."); + //debugstr("Warning: Guessing flash word size."); + flash_word_size=0; + break; case 0x85://CC2430 case 0x89://CC2431 //debugstr("4 bytes/flash word"); -- 2.20.1