Skip to content

Commit

Permalink
Update geoimage.php
Browse files Browse the repository at this point in the history
use the ap frequency as default for fresnal, otherwise it will be 2450
  • Loading branch information
jammin84 committed Oct 21, 2014
1 parent 71f267c commit 1b6818e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions globals/classes/geoimage.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ function plotlink($width, $height, $point_a, $point_b, $antenna_a=0, $antenna_b=
imagelinethick($image, $left_pad + 0, $ant_a, $left_pad + $width - 1, $ant_b, $color_link, 1);

//FRESNEL ZONE
$freq = 0;
if (isset($_GET['frequency']))
$freq = intval($_GET['frequency']);
$freq = (isset($_GET['frequency']) && $_GET['frequency'] > 0?intval($_GET['frequency'])
:(isset($point_a->freq) && $point_a->freq > 0?intval($point_a->freq)
:2450));
if ($freq <= 0) $freq = 2450;
$ant_a_r = round($ant_a);
$ant_b_r = round($ant_b);
Expand Down Expand Up @@ -182,4 +182,4 @@ function imagelinethick($image, $x1, $y1, $x2, $y2, $color, $thick = 1)
return imagepolygon($image, $points, 4, $color);
}

?>
?>

0 comments on commit 1b6818e

Please sign in to comment.