Fixed problem with Chipcon client guessing word size.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 26 May 2010 22:47:11 +0000 (22:47 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 26 May 2010 22:47:11 +0000 (22:47 +0000)
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

index fac551c..73ccd2f 100644 (file)
@@ -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");