reset style for small visu - release

This commit is contained in:
philippe44
2020-03-22 20:38:44 -07:00
parent 3eb2c76d6b
commit 6ad532a276

View File

@@ -1001,6 +1001,7 @@ static void visu_handler( u8_t *data, int len) {
pkt->row = htonl(pkt->row);
pkt->col = htonl(pkt->col);
visu.style = 0;
visu.width = htonl(pkt->width);
visu.height = pkt->height ? pkt->height : SB_HEIGHT;
visu.col = pkt->col < 0 ? displayer.width + pkt->col : pkt->col;
@@ -1018,7 +1019,7 @@ static void visu_handler( u8_t *data, int len) {
bars = htonl(pkt->full.bars);
visu.spectrum_scale = htonl(pkt->full.spectrum_scale) / 100.;
} else {
// select analogue/digital
// select analogue/digital style
visu.style = htonl(pkt->full.style);
}
}