summaryrefslogtreecommitdiff
path: root/apps/debug_menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/debug_menu.c')
-rw-r--r--apps/debug_menu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index 0f1356dfb9..bb9a00c57b 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -26,6 +26,7 @@
26#include "debug_menu.h" 26#include "debug_menu.h"
27#include "kernel.h" 27#include "kernel.h"
28#include "sprintf.h" 28#include "sprintf.h"
29#include "structec.h"
29#include "action.h" 30#include "action.h"
30#include "debug.h" 31#include "debug.h"
31#include "thread.h" 32#include "thread.h"
@@ -1882,7 +1883,11 @@ static bool dbg_identify_info(void)
1882 int fd = creat("/identify_info.bin"); 1883 int fd = creat("/identify_info.bin");
1883 if(fd >= 0) 1884 if(fd >= 0)
1884 { 1885 {
1886#ifdef ROCKBOX_LITTLE_ENDIAN
1887 ecwrite(fd, ata_get_identify(), SECTOR_SIZE/2, "s", true);
1888#else
1885 write(fd, ata_get_identify(), SECTOR_SIZE); 1889 write(fd, ata_get_identify(), SECTOR_SIZE);
1890#endif
1886 close(fd); 1891 close(fd);
1887 } 1892 }
1888 return false; 1893 return false;