aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/zpu/usrp2p/udp_fw_update.c
diff options
context:
space:
mode:
authorNick Foster <nick@ettus.com>2011-08-09 13:59:32 -0700
committerJosh Blum <josh@joshknows.com>2011-08-09 17:49:43 -0700
commita2ff19e38282e8ad641b9bbabbb07af315864548 (patch)
treed4c696f1d5e44857055f9be1af2783646a2f7dc2 /firmware/zpu/usrp2p/udp_fw_update.c
parentd44279498462911c7ea698ac5924da6025f2112a (diff)
downloaduhd-a2ff19e38282e8ad641b9bbabbb07af315864548.tar.gz
uhd-a2ff19e38282e8ad641b9bbabbb07af315864548.tar.bz2
uhd-a2ff19e38282e8ad641b9bbabbb07af315864548.zip
N2XX: fix bug in firmware updater (don't use local variables for static data). this fixes the "n210 bricking on update while streaming" bug.
Diffstat (limited to 'firmware/zpu/usrp2p/udp_fw_update.c')
-rw-r--r--firmware/zpu/usrp2p/udp_fw_update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/zpu/usrp2p/udp_fw_update.c b/firmware/zpu/usrp2p/udp_fw_update.c
index 68105aab3..793011651 100644
--- a/firmware/zpu/usrp2p/udp_fw_update.c
+++ b/firmware/zpu/usrp2p/udp_fw_update.c
@@ -35,6 +35,8 @@ uint16_t get_hw_rev(void) {
return tmp;
}
+spi_flash_async_state_t spi_flash_async_state;
+
//Firmware update packet handler
void handle_udp_fw_update_packet(struct socket_address src, struct socket_address dst,
unsigned char *payload, int payload_len) {
@@ -60,8 +62,6 @@ void handle_udp_fw_update_packet(struct socket_address src, struct socket_addres
update_data_in_id = USRP2_FW_UPDATE_ID_WAT;
}
- spi_flash_async_state_t spi_flash_async_state;
-
switch(update_data_in_id) {
case USRP2_FW_UPDATE_ID_OHAI_LOL: //why hello there you handsome devil
update_data_out.id = USRP2_FW_UPDATE_ID_OHAI_OMG;