Skip to content

Commit

Permalink
Merge pull request #155 from NordicSemiconductor/feat/make-battery-di…
Browse files Browse the repository at this point in the history
…sconnected-no-term-event

Feat: reduce severaty of battery dicsonnect event while profiling
  • Loading branch information
kylebonnici authored Apr 3, 2024
2 parents 8ee66b6 + ae13898 commit ab3a8e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
### Changed

- Updated firmware to v1.1.1+0.
- During profiling, when a battery is considered disconnected (vBat < 1 V), a
warning is now issued instead of a terminating error.

### Removed

Expand Down
3 changes: 2 additions & 1 deletion src/components/Profiling/Dialog/ProfilingWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ export default () => {
npmDevice?.getBatteryProfiler()?.stopProfiling();
dispatch(
setCompleteStep({
level: 'danger',
level:
profilingStage === 'Resting' ? 'danger' : 'warning',
message: ` The profiling process was interrupted, as battery was disconnected while ${profilingStage}.`,
})
);
Expand Down

0 comments on commit ab3a8e0

Please sign in to comment.