changeset 106:661d122ed8e7

fc-rfcal-txband: added delay which should prevent intermittent fw crash
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Dec 2017 16:06:07 +0000
parents 44c6a2b4d40a
children 8205ce02eb44
files autocal/txbandmain.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/autocal/txbandmain.c	Sat Dec 09 07:07:19 2017 +0000
+++ b/autocal/txbandmain.c	Sat Dec 09 16:06:07 2017 +0000
@@ -125,6 +125,13 @@
 	/* actual Tx levels calibration */
 	calibrate_tx_levels();
 
+	/*
+	 * We need to insert a delay between stopping Tx
+	 * and doing the FFS write in order to avoid
+	 * an intermittent fw crash on the DUT.
+	 */
+	usleep(100000);
+
 	printf("Saving calibrated values in FFS\n");
 	misc_enable(CFG_WRITE_TX_CAL);
 	exit(0);