Skip to content

Commit

Permalink
🥳
Browse files Browse the repository at this point in the history
  • Loading branch information
johntalton committed Mar 27, 2024
1 parent 37461f9 commit 52a33f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@johntalton/tcs34725",
"version": "2.0.0",
"version": "2.0.1",
"description": "",
"license": "MIT",
"engines": {
Expand Down Expand Up @@ -130,9 +130,9 @@
},
"dependencies": {
"@johntalton/and-other-delights": "^6.0.0",
"@johntalton/eslint-config": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"chai": "^4.3.7",
"@johntalton/eslint-config": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^7.4.0",
"chai": "^5.1.0",
"eslint-plugin-mocha": "^10.1.0",
"mocha": "^10.2.0",
"typescript": "^5.1.3"
Expand All @@ -143,7 +143,7 @@
},
"author": "johntalton@gmail.com",
"devDependencies": {
"c8": "^8.0.1",
"c8": "^9.1.0",
"color-convert": "^2.0.1",
"eslint": "^8.42.0",
"eslint-import-resolver-typescript": "^3.5.5",
Expand All @@ -155,10 +155,10 @@
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security": "^2.1.1",
"eslint-plugin-spellcheck": "0.0.20",
"i2c-bus": "^5.2.0",
"mqtt": "^4.1.0",
"mqtt": "^5.5.0",
"onoff": "^6.0.0"
}
}
8 changes: 5 additions & 3 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
Status,
Configuration,
Data,
FriendlyProfile
FriendlyProfile,
Profile
} from './types.js'
import { Converter } from './converter.js'
import {
Expand Down Expand Up @@ -142,7 +143,8 @@ export class Common {
])
}

// static async setProfile(bus: I2CAddressedBus, profile: Profile): Promise<void> {
static async setProfile(_bus: I2CAddressedBus, _profile: Profile): Promise<void> {
throw new Error('no impl')
// const enable = Converter.encodeEnable(profile) // todo do not pass entire profile
// const [wtime, wlong] = Converter.encodeWTimingMs(profile.waitTimeMs)
// const threshold = profile.threshold || { low: profile.low, high: profile.high }
Expand All @@ -161,7 +163,7 @@ export class Common {
// ])

// await Common.setEnabled(bus, enable)
// }
}

static setIntegrationTiming(_bus: I2CAddressedBus, _integrationTimeMs: number) {
throw new Error('Method not implemented.')
Expand Down

0 comments on commit 52a33f8

Please sign in to comment.