From 55bcbb16eb281ebcd731bcfe0007051655e9c0a9 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sun, 24 Nov 2024 16:39:52 -0500 Subject: [PATCH] Fix imports for EMR --- src/_EMR/ign_off.js | 6 +++--- src/_EMR/ign_on.js | 6 +++--- src/_EMR/main.js | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/_EMR/ign_off.js b/src/_EMR/ign_off.js index 4de26ae..36cc10d 100644 --- a/src/_EMR/ign_off.js +++ b/src/_EMR/ign_off.js @@ -1,7 +1,7 @@ // Import modules -const gpio = require('./custom_modules/VoidGPIO.js'); -const config = require('./custom_modules/config.json'); -const fn = require('./custom_modules/functions.js'); +const gpio = require('../custom_modules/VoidGPIO.js'); +const config = require('../custom_modules/config.json'); +const fn = require('../custom_modules/functions.js'); fn.log('Turning on igniter'); gpio.setPin(process.pinMap.get('igniter').board, 0); \ No newline at end of file diff --git a/src/_EMR/ign_on.js b/src/_EMR/ign_on.js index 8ad3d21..a77c980 100644 --- a/src/_EMR/ign_on.js +++ b/src/_EMR/ign_on.js @@ -1,7 +1,7 @@ // Import modules -const gpio = require('./custom_modules/VoidGPIO.js'); -const config = require('./custom_modules/config.json'); -const fn = require('./custom_modules/functions.js'); +const gpio = require('../custom_modules/VoidGPIO.js'); +const config = require('../custom_modules/config.json'); +const fn = require('../custom_modules/functions.js'); fn.log('Turning on igniter'); gpio.setPin(process.pinMap.get('igniter').board, 1); \ No newline at end of file diff --git a/src/_EMR/main.js b/src/_EMR/main.js index d02d86c..b211fe5 100644 --- a/src/_EMR/main.js +++ b/src/_EMR/main.js @@ -1,7 +1,7 @@ // Import modules -const gpio = require('./custom_modules/VoidGPIO.js'); -const config = require('./custom_modules/config.json'); -const fn = require('./custom_modules/functions.js'); +const gpio = require('../custom_modules/VoidGPIO.js'); +const config = require('../custom_modules/config.json'); +const fn = require('../custom_modules/functions.js'); // Auger Loop setInterval(fn.routines.cycleAuger, 2000);