Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mattias Fält
moberg
Commits
ba16f90b
Commit
ba16f90b
authored
Mar 05, 2021
by
Anders Blomdell
Browse files
Fix serial2002 32 bit error
parent
27cf6b8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
ba16f90b
LIBRARIES
=
libmoberg.so
MOBERG_VERSION
=
$(
shell
git describe
--tags
|
sed
-e
's/^v//;s/-/
_
/g'
)
MOBERG_VERSION
=
$(
shell
git describe
--tags
|
sed
-e
's/^v//;s/-/
.
/g'
)
CCFLAGS
+=
-Wall
-Werror
-I
$(
shell
pwd
)
-O3
-g
LDFLAGS
+=
-L
$(
shell
pwd
)
/build/
-lmoberg
PLUGINS
:=
$(
wildcard
plugins/
*
)
...
...
plugins/serial2002/serial2002.c
View file @
ba16f90b
...
...
@@ -281,7 +281,7 @@ static void remap_analog(
for
(
int
i
=
0
;
i
<
count
;
i
++
)
{
if
(
channel
[
i
].
kind
==
kind
)
{
remap
->
map
[
remap
->
count
].
index
=
i
;
remap
->
map
[
remap
->
count
].
maxdata
=
(
1
<<
channel
[
i
].
bits
)
-
1
;
remap
->
map
[
remap
->
count
].
maxdata
=
(
1
ULL
<<
channel
[
i
].
bits
)
-
1
;
remap
->
map
[
remap
->
count
].
min
=
channel
[
i
].
min
;
remap
->
map
[
remap
->
count
].
max
=
channel
[
i
].
max
;
if
(
remap
->
map
[
remap
->
count
].
maxdata
)
{
...
...
Write
Preview
Supports
Markdown
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