mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
improve display
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
|
||||
#include "esp_log.h"
|
||||
|
||||
#define LINELEN 60
|
||||
#define LINELEN 40
|
||||
#define TAG "display"
|
||||
|
||||
//Change special LCD chars to something more printable on screen
|
||||
@@ -94,7 +94,8 @@ void vfd_data( unsigned short *data, int bytes_read) {
|
||||
int addr = 0; /* counter */
|
||||
|
||||
if (bytes_read % 2) bytes_read--; /* even number of bytes */
|
||||
display_data = &(data[6]); /* display data starts at byte 12 */
|
||||
// if we use Noritake VFD codes, display data starts at 12
|
||||
display_data = &(data[5]); /* display data starts at byte 10 */
|
||||
|
||||
memset(ddram, ' ', LINELEN * 2);
|
||||
|
||||
|
||||
@@ -452,7 +452,7 @@ static void process_dsco(u8_t *pkt, int len) {
|
||||
|
||||
static void process_vfdc(u8_t *pkt, int len) {
|
||||
LOG_DEBUG("VFDC %u", len);
|
||||
vfd_data( pkt + 4, len - 4);
|
||||
vfd_data( pkt, len - 4);
|
||||
}
|
||||
|
||||
static void process_setd(u8_t *pkt, int len) {
|
||||
|
||||
Reference in New Issue
Block a user