ci: enable continuous integration

Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
Thomas Klaehn
2017-03-30 14:09:49 +02:00
parent ed80c54b7d
commit e541023bba
9 changed files with 38 additions and 62 deletions

View File

@@ -13,7 +13,7 @@ class DataBuffer(object):
return True
def average(self):
if len(self.__data) != self.__max:
if len(self.__data) is 0:
return None
return sum(self.__data) / len(self.__data)