Skip to content

Commit

Permalink
Enable 'amateur mode' for AT-D878UV by default. This enables all menu…
Browse files Browse the repository at this point in the history
… items. Fixes #85.
  • Loading branch information
hmatuschek committed Apr 18, 2021
1 parent e979fae commit 05913c8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions lib/d878uv_codeplug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,10 @@ void
D878UVCodeplug::general_settings_base_t::fromConfig(const Config *config, const Flags &flags) {
setMicGain(config->micLevel());

// Set SMS format
sms_format = SMS_FMT_DMR;
// Enable "amateur mode", this enables all menu items.
enable_pro_mode = 0x00;

// If auto-enable roaming is enabled
if (flags.autoEnableRoaming) {
Expand Down
9 changes: 9 additions & 0 deletions lib/uv390_callsigndb.hh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@
#include "userdatabase.hh"

/** Represents and encodes the binary format for the call-sign database within the radio.
*
* @section uv390cdb Callsign database structure
* <table>
* <tr><th>Start</th> <th>End</th> <th>Size</th> <th>Content</th></tr>
* <tr><th colspan="4">Callsign database 0x0200000-0x1000000</th></tr>
* <tr><td>0x200000</td> <td>0x204004</td> <td>0x04004</td> <td>Callsign database index table, see @c UV390Codeplug::callsign_db_t</td></tr>
* <tr><td>0x204004</td> <td>0xffffdc</td> <td>0xdfbfd8</td> <td>122197 callsign database entries, see @c UV390Codeplug::callsign_db_t::callsign_t. </td></tr>
* <tr><td>0xffffdc</td> <td>0x1000000</td> <td>0x00025</td> <td>Padding, filled with @c 0xff.</td></tr>
* </table>
*
* @ingroup uv390 */
class UV390CallsignDB : public CallsignDB
Expand Down
4 changes: 0 additions & 4 deletions lib/uv390_codeplug.hh
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ class GPSSystem;
* <tr><td>0x13ee00</td> <td>0x140000</td> <td>0x01200</td> <td>Reserved, filled with @c 0xff. </td></tr>
* <tr><td>0x140000</td> <td>0x197e40</td> <td>0x57e40</td> <td>10000 Contacts @ 0x24 bytes each, see @c UV390Codeplug::contact_t.</td></tr>
* <tr><td>0x197e40</td> <td>0x1a0000</td> <td>0x081c0</td> <td>Reserved, filled with @c 0xff. </td></tr>
* <tr><th colspan="4">Callsign database 0x0200000-0x1000000</th></tr>
* <tr><td>0x200000</td> <td>0x204004</td> <td>0x04004</td> <td>Callsign database index table, see @c UV390Codeplug::callsign_db_t</td></tr>
* <tr><td>0x204004</td> <td>0xffffdc</td> <td>0xdfbfd8</td> <td>122197 callsign database entries, see @c UV390Codeplug::callsign_db_t::callsign_t. </td></tr>
* <tr><td>0xffffdc</td> <td>0x1000000</td> <td>0x00025</td> <td>Padding, filled with @c 0xff.</td></tr>
* </table>
*
* @ingroup uv390 */
Expand Down

0 comments on commit 05913c8

Please sign in to comment.