Skip to content

Commit

Permalink
Feat: reduce severaty of battery dicsonnect event while profiling
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebonnici committed Apr 2, 2024
1 parent f599cd4 commit d3e23f2
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.
- Disconnected battery (vBat < 1V) while profiling this will only trigger a
warning.

### 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 d3e23f2

Please sign in to comment.