From 00a52d0bf5ff10ce9e073396b32a3fa6060346c8 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 16 Aug 2024 20:53:12 -0400 Subject: [PATCH] Fix file references --- src/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 081e606..9160dd4 100644 --- a/src/main.js +++ b/src/main.js @@ -19,7 +19,7 @@ function togglePin(pin, callback) { console.log(`Successfully toggled pin ${pin}`); // Wait for 1 second before turning it off setTimeout(() => { - exec(`python3 gpio_control.py toggle ${pin}`, (error, stdout, stderr) => { + exec(`python3 src/python/gpio_interface.py toggle ${pin}`, (error, stdout, stderr) => { if (error) { console.error(`Error turning off pin ${pin}: ${error.message}`); return callback(error); @@ -37,7 +37,7 @@ function togglePin(pin, callback) { // Function to sense a pin state function sensePin(pin, callback) { - exec(`python3 gpio_control.py sense ${pin}`, (error, stdout, stderr) => { + exec(`python3 src/python/gpio_interface.py sense ${pin}`, (error, stdout, stderr) => { if (error) { console.error(`Error sensing pin ${pin}: ${error.message}`); return callback(error);