Skip to content

Commit

Permalink
Update pi-spi package
Browse files Browse the repository at this point in the history
  • Loading branch information
bradhugh committed Jan 13, 2020
1 parent 98a0ac1 commit 9840c79
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 41 deletions.
24 changes: 16 additions & 8 deletions src/IotBbq.App/IotBbq.JsApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/IotBbq.App/IotBbq.JsApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@
"optionalDependencies": {},
"dependencies": {
"@bradhugh/Set-System-Clock": "^1.0.5",
"@bradhugh/pi-spi": "^1.2.2",
"drivelist": "^7.0.3",
"onoff": "^3.2.9",
"pi-spi": "git://github.com/bradhugh/pi-spi.git#bindings"
"onoff": "^3.2.9"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.803.22",
Expand Down
4 changes: 2 additions & 2 deletions src/IotBbq.App/IotBbq.JsApp/src/app/services/XPlatService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import * as fs from 'fs';
import * as os from 'os';
import * as path from 'path';
import * as onoff from 'onoff';
import * as pispi from 'pi-spi';
import * as pispi from '@bradhugh/pi-spi';
import * as drivelist from 'drivelist';
import { DateTimeControl } from '@bradhugh/Set-System-Clock';

Expand Down Expand Up @@ -48,7 +48,7 @@ export class XPlatService {
// These native modules are only used on the PI
if (this.isArm()) {
this.onoff = this.remote.require('onoff');
this.pispi = this.remote.require('pi-spi');
this.pispi = this.remote.require('@bradhugh/pi-spi');
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ISpiClient } from '../contracts/ISpiClient';
import { SPIClient } from 'pi-spi';
import { SPIClient } from '@bradhugh/pi-spi';
import { XPlatService } from '../XPlatService';

/*
Expand Down
28 changes: 0 additions & 28 deletions src/IotBbq.App/IotBbq.JsApp/src/typings/pi-spi.d.ts

This file was deleted.

0 comments on commit 9840c79

Please sign in to comment.