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 {