Fix undefined symbol when using ProcessNullUpdates in configuration file

This commit is contained in:
Florent Peyraud
2022-12-21 23:06:30 +01:00
parent f166f2a892
commit f5fb7e6547

View File

@@ -725,11 +725,11 @@ class Update(object):
if self.__config.get(section,'ProcessNullUpdates')=='0':
result=result and True
if self.__config.get(section,'ProcessNullUpdates')=='1':
result=result and self.hasPadType(pypad.TYPE_NOW)
result=result and self.hasPadType(TYPE_NOW)
if self.__config.get(section,'ProcessNullUpdates')=='2':
result=result and self.hasPadType(pypad.TYPE_NEXT)
result=result and self.hasPadType(TYPE_NEXT)
if self.__config.get(section,'ProcessNullUpdates')=='3':
result=result and self.hasPadType(pypad.TYPE_NOW) and self.hasPadType(pypad.TYPE_NEXT)
result=result and self.hasPadType(TYPE_NOW) and self.hasPadType(TYPE_NEXT)
else:
result=result and True