From 9900520b6a269f9b18acb176eee93787dd87dbe1 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 25 May 2009 19:26:40 +0000 Subject: [PATCH] remove EEPROM setting, complete tests even if SD fails git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11118 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp2/firmware/apps/factory_test.c | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/usrp2/firmware/apps/factory_test.c b/usrp2/firmware/apps/factory_test.c index 1f8d936a..b4b44dbd 100644 --- a/usrp2/firmware/apps/factory_test.c +++ b/usrp2/firmware/apps/factory_test.c @@ -40,9 +40,6 @@ #include #include "sd.h" -#define HW_REV_MAJOR 3 -#define HW_REV_MINOR 1 - #define FW_SETS_SEQNO 1 // define to 0 or 1 (FIXME must be 1 for now) #if (FW_SETS_SEQNO) @@ -329,29 +326,17 @@ main(void) { u2_init(); - putstr("\nFactory Test TXRX\n"); - - bool ok = true; - unsigned char maj = HW_REV_MAJOR; - unsigned char min = HW_REV_MINOR; - ok = eeprom_write(I2C_ADDR_MBOARD, MBOARD_REV_MSB, &maj, 1); - ok &= eeprom_write(I2C_ADDR_MBOARD, MBOARD_REV_LSB, &min, 1); + putstr("\nFactory Test\n"); - putstr("\nset_hw_rev\n"); - if (ok) - printf("OK: set h/w rev to %d.%d\n", HW_REV_MAJOR, HW_REV_MINOR); - else { - printf("FAILED to set h/w rev to %d.%d\n", HW_REV_MAJOR, HW_REV_MINOR); - hal_finish(); - return 0; - } + print_mac_addr(ethernet_mac_addr()->addr); + newline(); if(test_sd()) puts("SD OK\n"); else { puts("SD FAIL\n"); - hal_finish(); - return 0; + // hal_finish(); + //return 0; } if(test_ram()) puts("RAM OK\n"); -- 2.30.2