]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
tos-storage-stm25p: fix family support
authorR. Steve McKown <rsmckown@gmail.com>
Thu, 10 Jan 2013 16:56:33 +0000 (09:56 -0700)
committerR. Steve McKown <rsmckown@gmail.com>
Thu, 10 Jan 2013 16:56:33 +0000 (09:56 -0700)
The original commit, 125997899ab48cee5128a2dbf89776a4f446935d contained
an error where no family file would cause program abort.

tools/tinyos/misc/tos-storage-stm25p.in

index 4d8013dc3dbff5a7ddcc0387a9b28b2ed56790ab..9ef1428f4094f257550b3f239fd7ff8530f2c1c0 100644 (file)
@@ -152,7 +152,7 @@ def parseHeader( dotfile ):
            paths.append(path)
     return paths
   except:
            paths.append(path)
     return paths
   except:
-    return None
+    return []
 
 def findFile( paths, filename ):
   """ Find the first occurrence of 'filename' in the list of paths given. """
 
 def findFile( paths, filename ):
   """ Find the first occurrence of 'filename' in the list of paths given. """