From 29ed0ceda4f3bd640cdaf06862cfd50f58bae2f2 Mon Sep 17 00:00:00 2001
From: schneider <schneider@blinkenlichts.net>
Date: Fri, 23 Aug 2019 19:16:04 +0200
Subject: [PATCH] fix(max30001): Close properly

---
 pycardium/modules/py/max30001.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pycardium/modules/py/max30001.py b/pycardium/modules/py/max30001.py
index 67bc5169f..10f6d9e54 100644
--- a/pycardium/modules/py/max30001.py
+++ b/pycardium/modules/py/max30001.py
@@ -74,7 +74,7 @@ class MAX30001:
 
         if self.active:
             self.active = False
-            ret = sys_max30001.disable_sensor(self.sensor_id)
+            ret = sys_max30001.disable_sensor()
 
             if ret < 0:
                 raise ValueError("Disable sensor returned %i", ret)
-- 
GitLab