Fix file references
This commit is contained in:
parent
1ce82270f5
commit
00a52d0bf5
@ -19,7 +19,7 @@ function togglePin(pin, callback) {
|
|||||||
console.log(`Successfully toggled pin ${pin}`);
|
console.log(`Successfully toggled pin ${pin}`);
|
||||||
// Wait for 1 second before turning it off
|
// Wait for 1 second before turning it off
|
||||||
setTimeout(() => {
|
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) {
|
if (error) {
|
||||||
console.error(`Error turning off pin ${pin}: ${error.message}`);
|
console.error(`Error turning off pin ${pin}: ${error.message}`);
|
||||||
return callback(error);
|
return callback(error);
|
||||||
@ -37,7 +37,7 @@ function togglePin(pin, callback) {
|
|||||||
|
|
||||||
// Function to sense a pin state
|
// Function to sense a pin state
|
||||||
function sensePin(pin, callback) {
|
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) {
|
if (error) {
|
||||||
console.error(`Error sensing pin ${pin}: ${error.message}`);
|
console.error(`Error sensing pin ${pin}: ${error.message}`);
|
||||||
return callback(error);
|
return callback(error);
|
||||||
|
Loading…
Reference in New Issue
Block a user