endladcp1
changeset 12 5e67754f6457
parent 11 c39e37d59638
--- a/endladcp1	Thu Nov 21 14:01:21 2013 +0000
+++ b/endladcp1	Fri Jul 03 10:25:08 2020 -0400
@@ -1,10 +1,10 @@
 #!/usr/bin/expect -f
 #======================================================================
-#                    / U S E R S / L A D C P / B I N / L A D C P _ A C Q U I R E / E N D L A D C P 1 
+#                    E N D L A D C P 1 
 #                    doc: Wed Mar 10 22:23:52 2004
-#                    dlm: Sun Nov 10 04:15:47 2013
+#                    dlm: Fri Jul  3 10:15:18 2020
 #                    (c) 2004 A.M. Thurnherr
-#                    uE-Info: 58 0 NIL 0 0 72 2 2 8 NIL ofnI
+#                    uE-Info: 123 9 NIL 0 0 72 2 2 8 NIL ofnI
 #======================================================================
 
 # HISTORY:
@@ -20,6 +20,7 @@
 #  Aug 26, 2010: - added support for ymodem_download_cmd
 #  Dec  1, 2010: - BUG: ymodem_receive_cmd instead of ymodem_download_cmd
 #  Nov 10, 2013: - added dir listing before downlaod
+#  Jul  3, 2020: - expunged master/slave terminology
 
 #----------------------------------------------------------------------
 # Setup
@@ -61,8 +62,8 @@
 
 send_user "\nGetting station number...";
 set deployment_name [get_deployment_name];
-if {[scan $deployment_name $master_deployment_name_fmt stn] != 1} {
-	send_error "$deployment_name $master_deployment_name_fmt";
+if {[scan $deployment_name $DL_deployment_name_fmt stn] != 1} {
+	send_error "$deployment_name $DL_deployment_name_fmt";
 	error "Can't get station number";
 }
 set stnstr [format $stn_format $stn];
@@ -115,10 +116,10 @@
 	
 send_user "\nChecking data file...\n";
 set_color 0;
-check_data [format %s000.000 [format $master_deployment_name_fmt $stn]];
+check_data [format %s000.000 [format $DL_deployment_name_fmt $stn]];
 set_color;
 
 send_user "Backing up data file...";
-backup_master_data $stn;
+backup_DL_data $stn;
 
 send_user "\nDone\n"