Skip to content
This repository has been archived by the owner on Oct 27, 2020. It is now read-only.

Commit

Permalink
fix(agent): circular require
Browse files Browse the repository at this point in the history
  • Loading branch information
caseyWebb committed Aug 6, 2019
1 parent 2b8f87a commit 25d8049
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 4 additions & 1 deletion agent/src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { resolve } from 'path'
import dotenv from 'dotenv'
import { LedOption } from 'pi-io'
import { BoardType } from './driver'

export enum BoardType {
RaspberryPi = 'pi'
}

dotenv.config({ path: resolve(__dirname, '../../.env') })

Expand Down
6 changes: 1 addition & 5 deletions agent/src/driver.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import autobind from 'autobind-decorator'
import { Board, Led } from 'johnny-five'

import { BOARD, DRIVER_PWM_PIN } from './config'

export enum BoardType {
RaspberryPi = 'pi'
}
import { BOARD, DRIVER_PWM_PIN, BoardType } from './config'

class LedDriver {
private readonly ready: Promise<void>
Expand Down

0 comments on commit 25d8049

Please sign in to comment.