ci: enable continuous integration
Signed-off-by: Thomas Klaehn <thomas.klaehn@u-blox.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user