Skip to content

Commit

Permalink
zigbee-herdsman 0.54.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Jul 17, 2024
1 parent 932ddac commit bba1b05
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 27 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $ npm install -g ember-zli
$ ember-zli COMMAND
running command...
$ ember-zli (--version)
ember-zli/2.1.4 win32-x64 node-v20.15.0
ember-zli/2.1.5 win32-x64 node-v20.15.0
$ ember-zli --help [COMMAND]
USAGE
$ ember-zli COMMAND
Expand Down Expand Up @@ -111,7 +111,7 @@ EXAMPLES
$ ember-zli bootloader
```

_See code: [src/commands/bootloader/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.4/src/commands/bootloader/index.ts)_
_See code: [src/commands/bootloader/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.5/src/commands/bootloader/index.ts)_

## `ember-zli help [COMMAND]`

Expand Down Expand Up @@ -148,7 +148,7 @@ EXAMPLES
$ ember-zli router
```

_See code: [src/commands/router/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.4/src/commands/router/index.ts)_
_See code: [src/commands/router/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.5/src/commands/router/index.ts)_

## `ember-zli sniff`

Expand All @@ -165,7 +165,7 @@ EXAMPLES
$ ember-zli sniff
```

_See code: [src/commands/sniff/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.4/src/commands/sniff/index.ts)_
_See code: [src/commands/sniff/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.5/src/commands/sniff/index.ts)_

## `ember-zli stack`

Expand All @@ -182,7 +182,7 @@ EXAMPLES
$ ember-zli stack
```

_See code: [src/commands/stack/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.4/src/commands/stack/index.ts)_
_See code: [src/commands/stack/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.5/src/commands/stack/index.ts)_

## `ember-zli utils`

Expand All @@ -199,7 +199,7 @@ EXAMPLES
$ ember-zli utils
```

_See code: [src/commands/utils/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.4/src/commands/utils/index.ts)_
_See code: [src/commands/utils/index.ts](https://github.com/Nerivec/ember-zli/blob/v2.1.5/src/commands/utils/index.ts)_

## `ember-zli version`

Expand Down
20 changes: 10 additions & 10 deletions 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 package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ember-zli",
"description": "Interact with EmberZNet-based adapters using zigbee-herdsman 'ember' driver",
"version": "2.1.4",
"version": "2.1.5",
"author": "Nerivec",
"bin": {
"ember-zli": "bin/run.js"
Expand All @@ -17,7 +17,7 @@
"cli-progress": "^3.12.0",
"crc-32": "^1.2.2",
"winston": "^3.13.0",
"zigbee-herdsman": "^0.53.0"
"zigbee-herdsman": "0.54.1"
},
"devDependencies": {
"@oclif/prettier-config": "^0.2.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/bootloader/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class Bootloader extends Command {
choices: [
{ name: 'Get info', value: BootloaderMenu.INFO },
{ name: 'Update firmware', value: BootloaderMenu.UPLOAD_GBL },
{ name: 'Clear NVM3', value: BootloaderMenu.CLEAR_NVM3 },
{ name: 'Clear NVM3', value: BootloaderMenu.CLEAR_NVM3, disabled: gecko.adapterModel !== 'Sonoff ZBDongle-E' },
{ name: 'Exit bootloader', value: BootloaderMenu.RUN },
{ name: 'Force close', value: -1 },
],
Expand Down
9 changes: 1 addition & 8 deletions src/utils/bootloader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ class BootloaderWriter extends Readable {
public _read(): void {}
}

enum BootloaderMode {
/** The bootloader should not be run. */
NO_BOOTLOADER = 0xff,
STANDALONE_BOOTLOADER_NORMAL = 1,
STANDALONE_BOOTLOADER_RECOVERY = 0,
}

export enum BootloaderState {
/** Not connected to bootloader (i.e. not any of below) */
NOT_CONNECTED = 0,
Expand Down Expand Up @@ -490,7 +483,7 @@ export class GeckoBootloader extends EventEmitter<GeckoBootloaderEventMap> {
const ezsp = await emberStart(this.portConf)

try {
const status = await ezsp.ezspLaunchStandaloneBootloader(BootloaderMode.STANDALONE_BOOTLOADER_NORMAL)
const status = await ezsp.ezspLaunchStandaloneBootloader(true)

if (status !== SLStatus.OK) {
throw new Error(SLStatus[status])
Expand Down

0 comments on commit bba1b05

Please sign in to comment.