Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use new restoreNVM API to restore NVM backups #2120

Merged
merged 1 commit into from
Dec 30, 2021
Merged

Conversation

robertsLando
Copy link
Member

@robertsLando robertsLando commented Dec 30, 2021

Fixes #2119

cc @kpine

@robertsLando robertsLando changed the title feat: use new restoreNVM API to restore NVM backups feat: use new restoreNVM API to restore NVM backups Dec 30, 2021
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1636730218

  • 0 of 3 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 27.319%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/ZwaveClient.ts 0 3 0.0%
Totals Coverage Status
Change from base Build 1634742903: 0.0%
Covered Lines: 3635
Relevant Lines: 14026

💛 - Coveralls

@robertsLando robertsLando merged commit 18b49ea into master Dec 30, 2021
@robertsLando robertsLando deleted the fix#2119 branch December 30, 2021 07:52
Copy link
Member

@AlCalzone AlCalzone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robertsLando
https://zwave-js.github.io/node-zwave-js/#/api/controller?id=nvm-backup-and-restore

You're not displaying the entire progress now... Only the NVM conversion part, but not the restore progress that begins afterwards.

restoreNVM(
    nvmData: Buffer,
    convertProgress?: (bytesRead: number, total: number) => void,
    restoreProgress?: (bytesWritten: number, total: number) => void, // <-- THIS is missing!
): Promise<void>

@robertsLando
Copy link
Member Author

Fixed on master, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] Use new restoreNVM API to restore NVM backups
3 participants