From 043c586ff8745b0cc01ed173d23951289dbcffcf Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 29 Jul 2011 01:19:08 -0700 Subject: usrp2: shutoff streaming using the stop bit (fix) --- firmware/zpu/usrp2p/udp_fw_update.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'firmware/zpu/usrp2p/udp_fw_update.c') diff --git a/firmware/zpu/usrp2p/udp_fw_update.c b/firmware/zpu/usrp2p/udp_fw_update.c index f64e7653c..68105aab3 100644 --- a/firmware/zpu/usrp2p/udp_fw_update.c +++ b/firmware/zpu/usrp2p/udp_fw_update.c @@ -67,12 +67,13 @@ void handle_udp_fw_update_packet(struct socket_address src, struct socket_addres update_data_out.id = USRP2_FW_UPDATE_ID_OHAI_OMG; memcpy(&update_data_out.data.ip_addr, (void *)get_ip_addr(), sizeof(struct ip_addr)); //this is to stop streaming for the folks who think updating while streaming is a good idea - sr_rx_ctrl0->cmd = 1 << 31; //no samples now + sr_rx_ctrl0->cmd = 1 << 31 | 1 << 28; //no samples now sr_rx_ctrl0->time_secs = 0; sr_rx_ctrl0->time_ticks = 0; //latch the command - sr_rx_ctrl1->cmd = 1 << 31; //no samples now + sr_rx_ctrl1->cmd = 1 << 31 | 1 << 28; //no samples now sr_rx_ctrl1->time_secs = 0; sr_rx_ctrl1->time_ticks = 0; //latch the command + sr_tx_ctrl->cyc_per_up = 0; break; case USRP2_FW_UPDATE_ID_WATS_TEH_FLASH_INFO_LOL: //query sector size, memory size so the host can mind the boundaries -- cgit v1.2.3