Commit ba16f90b authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fix serial2002 32 bit error

parent 27cf6b8d
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/*)
......
......@@ -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 = (1ULL << 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) {
......
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