fix version check

This commit is contained in:
osaajani 2023-05-30 17:53:04 +02:00
parent 01dcd164ec
commit 552300a971
1 changed files with 1 additions and 1 deletions

View File

@ -225,7 +225,7 @@ if __name__ == "__main__":
# see https://github.com/gammu/gammu/issues/460 # see https://github.com/gammu/gammu/issues/460
try: try:
gammu_version = get_gammu_version() gammu_version = get_gammu_version()
if gammu_version[0] >= 1 and gammu_version[1] >= 42: if gammu_version[0] > 1 or (gammu_version[0] == 1 and gammu_version[1] >= 42):
delete = True delete = True
else: else:
logger.warning("Cannot delete SMS. You need gammu >= 1.42.0.") logger.warning("Cannot delete SMS. You need gammu >= 1.42.0.")