From 2b8a1881f466711a197b7f6bac2f38f8f5487139 Mon Sep 17 00:00:00 2001 From: daifengyi Date: Wed, 28 Jun 2023 17:44:37 +0800 Subject: [PATCH] fix:time format enumeration value --- HDFwear/Setting/OtherSettingVC.swift | 2 +- HDFwear/Tools/Bluetooth+Types.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HDFwear/Setting/OtherSettingVC.swift b/HDFwear/Setting/OtherSettingVC.swift index c21060d..6b87d12 100644 --- a/HDFwear/Setting/OtherSettingVC.swift +++ b/HDFwear/Setting/OtherSettingVC.swift @@ -191,7 +191,7 @@ extension OtherSettingVC: UITableViewDelegate, UITableViewDataSource { } } case "12小时": - BluetoothManager.shared.newSetTimeFormat(format: .hour_24) {[weak self] error in + BluetoothManager.shared.newSetTimeFormat(format: .hour_12) {[weak self] error in if error == nil { user.timeFormat = 1 self?.updateUI(indexPath, user: user) diff --git a/HDFwear/Tools/Bluetooth+Types.swift b/HDFwear/Tools/Bluetooth+Types.swift index fa00ea4..b0fd066 100644 --- a/HDFwear/Tools/Bluetooth+Types.swift +++ b/HDFwear/Tools/Bluetooth+Types.swift @@ -63,8 +63,8 @@ enum TemperatureUnit: UInt8 { case fahrenheit = 1 } enum TimeFormat: UInt8 { - case hour_24 = 1 - case hour_12 = 0 + case hour_24 = 0 + case hour_12 = 1 } enum BleCmd: UInt8 { -- libgit2 0.21.4