mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-07 20:17:04 +03:00
reset style for small visu - release
This commit is contained in:
@@ -1001,6 +1001,7 @@ static void visu_handler( u8_t *data, int len) {
|
|||||||
pkt->row = htonl(pkt->row);
|
pkt->row = htonl(pkt->row);
|
||||||
pkt->col = htonl(pkt->col);
|
pkt->col = htonl(pkt->col);
|
||||||
|
|
||||||
|
visu.style = 0;
|
||||||
visu.width = htonl(pkt->width);
|
visu.width = htonl(pkt->width);
|
||||||
visu.height = pkt->height ? pkt->height : SB_HEIGHT;
|
visu.height = pkt->height ? pkt->height : SB_HEIGHT;
|
||||||
visu.col = pkt->col < 0 ? displayer.width + pkt->col : pkt->col;
|
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);
|
bars = htonl(pkt->full.bars);
|
||||||
visu.spectrum_scale = htonl(pkt->full.spectrum_scale) / 100.;
|
visu.spectrum_scale = htonl(pkt->full.spectrum_scale) / 100.;
|
||||||
} else {
|
} else {
|
||||||
// select analogue/digital
|
// select analogue/digital style
|
||||||
visu.style = htonl(pkt->full.style);
|
visu.style = htonl(pkt->full.style);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user