From 893c81e2acedc0eee8605e9f17b8cc1ff75ff67d Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 26 Jan 2016 15:28:10 +0000 Subject: [PATCH] emontx: Increase size of words[] array for endianness conversion Fixes #277 --- src/devices/emontx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/emontx.c b/src/devices/emontx.c index e850af52..3a090ab4 100644 --- a/src/devices/emontx.c +++ b/src/devices/emontx.c @@ -53,7 +53,7 @@ static int emontx_callback(bitbuffer_t *bitbuffer) { struct emontx p; uint8_t b[sizeof(struct emontx)]; } pkt; - uint16_t words[13]; + uint16_t words[14]; double vrms; unsigned i;