bugfix: test/update grid square to message appears when appropriate

This commit is contained in:
Darryl Quinn 2015-12-07 15:41:34 -06:00
parent 2bbcb1598f
commit e1d4c82256
1 changed files with 5 additions and 2 deletions

View File

@ -443,8 +443,11 @@ foreach(`zcat /etc/opkg.list.gz 2>/dev/null`)
#
if($parms{button_location})
{
system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare};
push @loc_output, "Gridsquare updated.\n";
if($parms{gridsquare})
{
system "echo '$parms{gridsquare}' > /etc/gridsquare" if $parms{gridsquare};
push @loc_output, "Gridsquare updated.\n";
}
if($parms{latitude} and $parms{longitude})
{
system "echo '$parms{latitude}' > /etc/latlon";