diff --git a/Makefile b/Makefile index 61caf1e846c4ad73c814d65a23080b309cb10ab1..e59a87d6f9b9940de0b7a588887c48e858f4082e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ 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/*) diff --git a/plugins/serial2002/serial2002.c b/plugins/serial2002/serial2002.c index e94ca95c6066d176dd91214f4d6c89283c612c9f..564e689372de35f1dcb2e61c124cfff96300bf25 100644 --- a/plugins/serial2002/serial2002.c +++ b/plugins/serial2002/serial2002.c @@ -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) {