map CW-U and CW-L to CW

This commit is contained in:
github-actions
2024-08-03 13:32:02 +02:00
parent b32228e699
commit 3c8bdd3b8a

View File

@@ -552,6 +552,12 @@ class API extends CI_Controller {
$user_id = $this->api_model->key_userid($obj['key']);
// Special Case: Yaesu Radio's use CW-U and CW-L which aren't official ADIF Modes. We override this here to CW
if (isset($obj['mode']) && (strtoupper($obj['mode']) == 'CW-U' || strtoupper($obj['mode']) == 'CW-L')) {
$obj['mode'] = 'CW';
log_message('info', 'CW-U and CW-L are not official adif modes. Therefore the mode is overwritten to CW');
}
// Store Result to Database
$this->cat->update($obj, $user_id);