Adjust RF Power for Bullet M's

Bullet M2 has a maxpower of 28dbm.  Unit has a 12db amplifier

closes #5
This commit is contained in:
Conrad Lara - KG6JEI 2013-12-08 16:11:50 -08:00
parent 32f107648a
commit 8425998355
1 changed files with 6 additions and 2 deletions

View File

@ -870,7 +870,8 @@ sub wifi_maxpower
$boardtype = `/usr/local/bin/get_hardwaretype`; $boardtype = `/usr/local/bin/get_hardwaretype`;
chomp($boardtype); chomp($boardtype);
if ($boardtype eq "bullet-m"){ if ($boardtype eq "bullet-m"){
return 27; #bullet-m has a 12db offchip amp.
return 16;
} }
elsif ($boardtype eq "rocket-m") { elsif ($boardtype eq "rocket-m") {
#Rocket-m is 28dbm but has a 10db offchip amp. #Rocket-m is 28dbm but has a 10db offchip amp.
@ -942,7 +943,10 @@ sub wifi_txpoweroffset
{ {
$boardtype = `/usr/local/bin/get_hardwaretype`; $boardtype = `/usr/local/bin/get_hardwaretype`;
chomp($boardtype); chomp($boardtype);
if ($boardtype eq "rocket-m"){ if ($boardtype eq "bullet-m"){
return 12;
}
elsif ($boardtype eq "rocket--m"){
return 10; return 10;
} }
else else