[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 modes
这个提交包含在:
父节点
eef45b0c9f
当前提交
a33a094f3b
共有 1 个文件被更改,包括 16 次插入 和 0 次删除
|
|
@ -910,4 +910,20 @@ class Lotw extends CI_Controller {
|
||||||
return array_search(strtoupper($satname),$arr,true);
|
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
|
} // end class
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用