Commit 066a2e70 authored by Kevin Lyda's avatar Kevin Lyda 💬
Browse files

Fix config deserialisation.

parent 806acd9d
Pipeline #1240 passed with stage
in 59 seconds
......@@ -63,59 +63,59 @@ type GQGMCCounter struct {
// DevConfig is the gcgmc config block.
type DevConfig struct {
PowerOnOff int8 `struct:"int8"`
AlarmOnOff int8 `struct:"int8"`
SpeakerOnOff int8 `struct:"int8"`
GraphicModeOnOff int8 `struct:"int8"`
BackLightTimeoutSeconds int8 `struct:"int8"`
IdleTitleDisplayMode int8 `struct:"int8"`
AlarmCPMValue int16 `struct:"int16,big"`
CalibrationCPM0 int16 `struct:"int16,big"`
CalibrationSvUcByte3p0 byte `struct:"byte"`
CalibrationSvUcByte2p0 byte `struct:"byte"`
CalibrationSvUcByte1p0 byte `struct:"byte"`
CalibrationSvUcByte0p0 byte `struct:"byte"`
CalibrationCPM1 int16 `struct:"int16,big"`
CalibrationSvUcByte3p1 byte `struct:"byte"`
CalibrationSvUcByte2p1 byte `struct:"byte"`
CalibrationSvUcByte1p1 byte `struct:"byte"`
CalibrationSvUcByte0p1 byte `struct:"byte"`
CalibrationCPM2 int16 `struct:"int16,big"`
CalibrationSvUcByte3p2 byte `struct:"byte"`
CalibrationSvUcByte2p2 byte `struct:"byte"`
CalibrationSvUcByte1p2 byte `struct:"byte"`
CalibrationSvUcByte0p2 byte `struct:"byte"`
IdleDisplayMode byte `struct:"byte"`
AlarmValueuSvByte3 byte `struct:"byte"`
AlarmValueuSvByte2 byte `struct:"byte"`
AlarmValueuSvByte1 byte `struct:"byte"`
AlarmValueuSvByte0 byte `struct:"byte"`
AlarmType byte `struct:"byte"`
SaveDataType byte `struct:"byte"`
SwivelDisplay byte `struct:"byte"`
ZoomByte3 byte `struct:"byte"`
ZoomByte2 byte `struct:"byte"`
ZoomByte1 byte `struct:"byte"`
ZoomByte0 byte `struct:"byte"`
SPIDataSaveAddress2 byte `struct:"byte"`
SPIDataSaveAddress1 byte `struct:"byte"`
SPIDataSaveAddress0 byte `struct:"byte"`
SPIDataReadAddress2 byte `struct:"byte"`
SPIDataReadAddress1 byte `struct:"byte"`
SPIDataReadAddress0 byte `struct:"byte"`
PowerSavingMode int8 `struct:"int8"`
SensitivityMode int8 `struct:"int8"`
CounterDelay int16 `struct:"int16,big"`
VoltageOffset int8 `struct:"int8"`
MaxCPM int16 `struct:"uint16,big"`
SensitivityAutoModeThreshold int8 `struct:"int8"`
SaveDateTimeStamp6 byte `struct:"byte"`
SaveDateTimeStamp5 byte `struct:"byte"`
SaveDateTimeStamp4 byte `struct:"byte"`
SaveDateTimeStamp3 byte `struct:"byte"`
SaveDateTimeStamp2 byte `struct:"byte"`
SaveDateTimeStamp1 byte `struct:"byte"`
MaximumBytes byte `struct:"byte"`
PowerOnOff int8 `struct:"int8"`
AlarmOnOff int8 `struct:"int8"`
SpeakerOnOff int8 `struct:"int8"`
GraphicModeOnOff int8 `struct:"int8"`
BackLightTimeoutSeconds int8 `struct:"int8"`
IdleTitleDisplayMode int8 `struct:"int8"`
AlarmCPMValue int16 `struct:"int16,big"`
CalibrationCPM0 int16 `struct:"int16,big"`
CalibrationSvUcByte3p0 byte `struct:"byte"`
CalibrationSvUcByte2p0 byte `struct:"byte"`
CalibrationSvUcByte1p0 byte `struct:"byte"`
CalibrationSvUcByte0p0 byte `struct:"byte"`
CalibrationCPM1 int16 `struct:"int16,big"`
CalibrationSvUcByte3p1 byte `struct:"byte"`
CalibrationSvUcByte2p1 byte `struct:"byte"`
CalibrationSvUcByte1p1 byte `struct:"byte"`
CalibrationSvUcByte0p1 byte `struct:"byte"`
CalibrationCPM2 int16 `struct:"int16,big"`
CalibrationSvUcByte3p2 byte `struct:"byte"`
CalibrationSvUcByte2p2 byte `struct:"byte"`
CalibrationSvUcByte1p2 byte `struct:"byte"`
CalibrationSvUcByte0p2 byte `struct:"byte"`
IdleDisplayMode byte `struct:"byte"`
AlarmValueuSvByte3 byte `struct:"byte"`
AlarmValueuSvByte2 byte `struct:"byte"`
AlarmValueuSvByte1 byte `struct:"byte"`
AlarmValueuSvByte0 byte `struct:"byte"`
AlarmType byte `struct:"byte"`
SaveDataType byte `struct:"byte"`
SwivelDisplay byte `struct:"byte"`
ZoomByte3 byte `struct:"byte"`
ZoomByte2 byte `struct:"byte"`
ZoomByte1 byte `struct:"byte"`
ZoomByte0 byte `struct:"byte"`
SPIDataSaveAddress2 byte `struct:"byte"`
SPIDataSaveAddress1 byte `struct:"byte"`
SPIDataSaveAddress0 byte `struct:"byte"`
SPIDataReadAddress2 byte `struct:"byte"`
SPIDataReadAddress1 byte `struct:"byte"`
SPIDataReadAddress0 byte `struct:"byte"`
PowerSavingMode int8 `struct:"int8"`
SensitivityMode int8 `struct:"int8"`
CounterDelay int16 `struct:"int16,big"`
VoltageOffset int8 `struct:"int8"`
MaxCPM uint16 `struct:"uint16,big"`
SensitivityAutoModeThreshold int8 `struct:"int8"`
SaveDateTimeStamp6 byte `struct:"byte"`
SaveDateTimeStamp5 byte `struct:"byte"`
SaveDateTimeStamp4 byte `struct:"byte"`
SaveDateTimeStamp3 byte `struct:"byte"`
SaveDateTimeStamp2 byte `struct:"byte"`
SaveDateTimeStamp1 byte `struct:"byte"`
MaximumBytes byte `struct:"byte"`
}
// NewGQGMC creates a new GQGMC Counter instance
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment