From d3e23f276dc56e74f962e7ba83cd8475c22330a8 Mon Sep 17 00:00:00 2001 From: kylebonnici Date: Tue, 2 Apr 2024 15:33:03 +0200 Subject: [PATCH] Feat: reduce severaty of battery dicsonnect event while profiling --- Changelog.md | 2 ++ src/components/Profiling/Dialog/ProfilingWizard.tsx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 4ed7b890..2138ddf3 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 diff --git a/src/components/Profiling/Dialog/ProfilingWizard.tsx b/src/components/Profiling/Dialog/ProfilingWizard.tsx index 4c8cd433..7f19fa63 100644 --- a/src/components/Profiling/Dialog/ProfilingWizard.tsx +++ b/src/components/Profiling/Dialog/ProfilingWizard.tsx @@ -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}.`, }) );