From 552300a971a15bdce7ce98ef992da11fdfa350dc Mon Sep 17 00:00:00 2001 From: osaajani <> Date: Tue, 30 May 2023 17:53:04 +0200 Subject: [PATCH] fix version check --- bin/gammu_get_unread_sms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/gammu_get_unread_sms.py b/bin/gammu_get_unread_sms.py index 26dcf72..4dd6a23 100755 --- a/bin/gammu_get_unread_sms.py +++ b/bin/gammu_get_unread_sms.py @@ -225,7 +225,7 @@ if __name__ == "__main__": # see https://github.com/gammu/gammu/issues/460 try: 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 else: logger.warning("Cannot delete SMS. You need gammu >= 1.42.0.")