summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/recorder/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/recorder/bmp.c b/apps/recorder/bmp.c
index 142bf5dff2..3e7356a500 100644
--- a/apps/recorder/bmp.c
+++ b/apps/recorder/bmp.c
@@ -276,7 +276,7 @@ static unsigned int read_part_line(struct bmp_args *ba)
break;
case 15:
case 16:
- data = letoh16(*(uint16_t*)ibuf);
+ data = ibuf[0] | (ibuf[1]<<8);
component = (data << 3) & 0xf8;
component |= component >> 5;
buf->blue = component;