error handling
This commit is contained in:
parent
78d3925b65
commit
5158eec598
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
require_once("iniget.inc.php");
|
||||
$rigctl='/usr/bin/rigctl';
|
||||
$ssb_wid='2400';
|
||||
$ssb_wid='2800';
|
||||
$cw_wid='500';
|
||||
###############################################################
|
||||
print "==> RIG CONNECT... ";
|
||||
@ -69,7 +69,7 @@ while ( TRUE ) {
|
||||
$data->request->smeter=$smet;
|
||||
$put=qrzcq_api_rig('put',$data);
|
||||
// put end
|
||||
if ( $put->status != 'OK' ) { print "\nERROR: QRZCQ PUT FAILED\n"; };
|
||||
if ( !isset($put->status) || $put->status != 'OK' ) { print "\nERROR: QRZCQ PUT FAILED\n"; };
|
||||
}
|
||||
$last_read=time();
|
||||
if ( preg_match("/0$/",time()) && $freq*1 > 0 && $mode == strtoupper($mode) ) { print "ALIVE[_".number_format($freq,0,'','.')."_/".$mode."/".$wid."/".$smet."]\n"; };
|
||||
|
Loading…
Reference in New Issue
Block a user