fix imports
This commit is contained in:
parent
777fb91294
commit
7ce0472415
1 changed files with 1 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
import ws281x from 'rpi-ws281x'
|
import ws281x from 'rpi-ws281x'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
import { Logger, levels } from './logger.js'
|
import Logger, { levels } from './logger.js'
|
||||||
|
|
||||||
const cfg = JSON.parse(fs.readFileSync('./config.json'));
|
const cfg = JSON.parse(fs.readFileSync('./config.json'));
|
||||||
const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO);
|
const log = new Logger("lights", cfg.log_level ? levels[cfg.log_level] : levels.INFO);
|
||||||
|
|
Loading…
Reference in a new issue