kopia lustrzana https://github.com/magicbug/Cloudlog
[LoTW] Creates a map_mode function for converting ADIF modes to lotw modes
LoTW has a weird habbit of using on standard modes this matches those to ADIF modespull/955/head
rodzic
eef45b0c9f
commit
a33a094f3b
|
@ -910,4 +910,20 @@ class Lotw extends CI_Controller {
|
|||
return array_search(strtoupper($satname),$arr,true);
|
||||
}
|
||||
|
||||
/*
|
||||
| Function: mode_map
|
||||
| Requires: mode as $mode
|
||||
|
|
||||
| This converts ADIF modes to the mode that LoTW expects if its non standard
|
||||
*/
|
||||
function mode_map($mode) {
|
||||
switch ($mode):
|
||||
case "PKT":
|
||||
return "PACKET"
|
||||
break;
|
||||
default:
|
||||
return $mode
|
||||
endswitch;
|
||||
}
|
||||
|
||||
} // end class
|
||||
|
|
Ładowanie…
Reference in New Issue