From 8cea86285c8b277b5431bbb773cffddb8a03a0d5 Mon Sep 17 00:00:00 2001 From: Alexandre Bard Date: Wed, 29 May 2019 08:31:54 +0200 Subject: [PATCH] sim-config: Fix pathname in reset function --- recipes-connectivity/sim-config/files/sim-config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-connectivity/sim-config/files/sim-config.py b/recipes-connectivity/sim-config/files/sim-config.py index 325a71e..88de4c6 100755 --- a/recipes-connectivity/sim-config/files/sim-config.py +++ b/recipes-connectivity/sim-config/files/sim-config.py @@ -28,7 +28,7 @@ def reset_modem(): time.sleep(2) write_to_file(GPIO_PATH + 'gpio' + GPIO_SIM_RST + '/value', '0') # Wait until modem rebooted - while os.path.exists('dev/ttyACM0'): + while os.path.exists('/dev/ttyACM0'): time.sleep(1) while not os.path.exists('/dev/ttyACM0'): time.sleep(1)