Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kevin Lyda
gqgmc
Commits
361ce13f
Commit
361ce13f
authored
Feb 02, 2017
by
Kevin Lyda
💬
Browse files
Fix config deserialisation (full slice).
parent
066a2e70
Pipeline
#1241
passed with stage
in 2 minutes and 33 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
devices/geiger/gqgmc.go
View file @
361ce13f
...
...
@@ -307,7 +307,7 @@ func (gc *GQGMCCounter) GetConfiguration() (*DevConfig, error) {
return
nil
,
err
}
var
cfg
DevConfig
restruct
.
Unpack
(
data
[
:
5
8
],
binary
.
BigEndian
,
&
cfg
)
restruct
.
Unpack
(
data
[
:
5
9
],
binary
.
BigEndian
,
&
cfg
)
fmt
.
Printf
(
"Configuration: %+v
\n
"
,
data
)
return
&
cfg
,
nil
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment