From 27650cb694440fcebef0a42c6f79e7bd7ac68400 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E5=BD=AD=E7=A3=8A?= <1624952103@qq.com> Date: Tue, 10 Sep 2024 11:30:16 +0000 Subject: [PATCH] Merge #932 into sdk602patch0626 from refs/changes/932/head MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Code review from 彭磊 * refs/changes/932/head: (3 commits squashed) - 修复距离 卡路里不清零的BUG - 修复黑曜表盘天气图标显示错误BUG - Merge branch 'sdk602patch0626' of https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230 into sdk602patch0626 Signed-off-by: aliyun6865282430 <1624952103@qq.com> Reviewed-by: snickersun@163.com Merged-by: snickersun@163.com CR-link: https://codeup.aliyun.com/64191456b9581d62e8f81ac0/FD230/change/932 --- .../fd230app/nativeui/main/src/dial/DialModelWeather.cpp | 2 +- .../dial_converter_tool/instance/114/obsidianrhythm.xml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp index adade5b93..d549ea367 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/dial/DialModelWeather.cpp @@ -28,7 +28,7 @@ namespace OHOS /*表盘更新天气Icon*/ void DialModelWeather::UpdateWeather(int16_t Weather) { - Weather_ = static_cast(Weather); + Weather_ = static_cast(Weather - 1); if (onChangeListener_ != nullptr) { onChangeListener_->OnDialFloatDataUpdate(DialDataType::DATA_TYPE_WEATHER, Weather_); diff --git a/tools/dial_converter_tool/instance/114/obsidianrhythm.xml b/tools/dial_converter_tool/instance/114/obsidianrhythm.xml index d1b19b504..24516a07e 100644 --- a/tools/dial_converter_tool/instance/114/obsidianrhythm.xml +++ b/tools/dial_converter_tool/instance/114/obsidianrhythm.xml @@ -11,24 +11,23 @@ - + - - + - + - + -- 2.17.1