Fix imports for EMR

This commit is contained in:
Skylar Grant 2024-11-24 16:39:52 -05:00
parent 7cb59cda01
commit 55bcbb16eb
3 changed files with 9 additions and 9 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);