@echo off
REM * Copyright 2013 Broadcom Corporation -- http://www.broadcom.com
REM * This program is the proprietary software of Broadcom Corporation and/or
REM * its licensors, and may only be used, duplicated, modified or distributed
REM * pursuant to the terms and conditions of a separate, written license
REM * agreement executed between you and Broadcom (an "Authorized License").
REM * Except as set forth in an Authorized License, Broadcom grants no license
REM * (express or implied), right to use, or waiver of any kind with respect to
REM * the Software, and Broadcom expressly reserves all rights in and to the
REM * Software and all intellectual property rights therein. IF YOU HAVE NO
REM * AUTHORIZED LICENSE, THEN YOU HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY
REM * WAY, AND SHOULD IMMEDIATELY NOTIFY BROADCOM AND DISCONTINUE ALL USE OF
REM * THE SOFTWARE.
if "%1"=="" goto NEED_GL_LOG
python %~dp0SerialLog.py ha.txt ":H->A"
python %~dp0SerialLog.py ah.txt ":H<-A"
python %~dp0SerialLog.py %1 " H->A"
move /Y %1_packets.txt %1_packets_ha.txt
python %~dp0SerialLog.py %1 " H<-A"
move /Y %1_packets.txt %1_packets_ah.txt

goto FINISH

:NEED_GL_LOG
echo Drag one log file gl* to %0
pause

:FINISH