diff options
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index b9af2f8..4bb2cfb 100644 --- a/apps/debug_menu.c +++ b/apps/debug_menu.c @@ -1525,7 +1525,7 @@ static bool dbg_disk_info(void) switch (page) { case 0: for (i=0; i < 20; i++) - ((unsigned short*)buf)[i]=identify_info[i+27]; + ((unsigned short*)buf)[i]=htobe16(identify_info[i+27]); buf[40]=0; /* kill trailing space */ for (i=39; i && buf[i]==' '; i--) @@ -1536,7 +1536,7 @@ static bool dbg_disk_info(void) case 1: for (i=0; i < 4; i++) - ((unsigned short*)buf)[i]=identify_info[i+23]; + ((unsigned short*)buf)[i]=htobe16(identify_info[i+23]); buf[8]=0; lcd_puts(0, y++, "Firmware"); lcd_puts(0, y++, buf); |