float64全部改float32
This commit is contained in:
@@ -54,8 +54,8 @@ const (
|
||||
// 它提供了必要的元数据,以便应用程序能够正确解释从设备读取的原始数据。
|
||||
type ValueDescriptor struct {
|
||||
Type SensorType `json:"type"`
|
||||
Multiplier float64 `json:"multiplier"` // 乘数,用于原始数据转换
|
||||
Offset float64 `json:"offset"` // 偏移量,用于原始数据转换
|
||||
Multiplier float32 `json:"multiplier"` // 乘数,用于原始数据转换
|
||||
Offset float32 `json:"offset"` // 偏移量,用于原始数据转换
|
||||
}
|
||||
|
||||
// --- 指令结构体 (Command Structs) ---
|
||||
|
||||
Reference in New Issue
Block a user