diff --git a/.idea/detect-gui.iml b/.idea/detect-gui.iml
index a1b377a..80f67ae 100644
--- a/.idea/detect-gui.iml
+++ b/.idea/detect-gui.iml
@@ -4,7 +4,7 @@
-
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 9f2e3a2..66b3d02 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,5 +3,5 @@
-
+
\ No newline at end of file
diff --git a/components/gpio.py b/components/gpio.py
index ce2d39d..5e1a034 100644
--- a/components/gpio.py
+++ b/components/gpio.py
@@ -47,12 +47,14 @@ class GPIOManager(EdgeComponent):
with open(self.lidar_direction_path, 'w') as f:
f.write('out')
self.logger.info(f"Export GPIO {self.lidar_pin}")
+ self.open_lidar()
with open(self.export_path, 'w') as f:
f.write(str(self.camera_pin))
with open(self.camera_direction_path, 'w') as f:
f.write('out')
self.logger.info(f"Export GPIO {self.camera_pin}")
+ self.open_camera()
except IOError as e:
self.logger.error(f"Error exporting GPIO {self.lidar_pin}/{self.camera_pin}: {e}")