Skip to content

Commit

Permalink
Fixed udev rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatuschek committed Jan 15, 2021
1 parent 9cff0d0 commit 2382dd1
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 330 deletions.
4 changes: 4 additions & 0 deletions dist/99-qdmr.rules
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="666"

# Baofeng RD-5R, TD-5R
SUBSYSTEM=="usb", ATTRS{idVendor}=="15a2", ATTRS{idProduct}=="0073", MODE="666"

# Anytone AT-D868UV, AT-D878UV
# Ignore this device in Modem Manager
ATTRS{idVendor}=="28e9" ATTRS{idProduct}=="018a", ENV{ID_MM_DEVICE_IGNORE}="1"
317 changes: 2 additions & 315 deletions lib/csvreader.hh

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/csvwriter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Config;


/** Writing config files.
* @ingroup conffile */
* @ingroup conf */
class CSVWriter
{
public:
Expand Down
11 changes: 2 additions & 9 deletions lib/d878uv_codeplug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,6 @@ D878UVCodeplug::channel_t::linkChannelObj(Channel *c, const CodeplugContext &ctx
if ((0xff != scan_list_index) && ctx.hasScanList(scan_list_index))
c->setScanList(ctx.getScanList(scan_list_index));

/// @bug Complete D878UV channel linking.
return true;
}

Expand Down Expand Up @@ -1081,14 +1080,14 @@ D878UVCodeplug::allocateForDecoding() {
uint8_t *channel_bitmap = data(CHANNEL_BITMAP);
for (uint16_t i=0; i<NUM_CHANNELS; i++) {
// Get byte and bit for channel, as well as bank of channel
uint16_t bit = i%8, byte = i/8, bank = i/128;
uint16_t bit = i%8, byte = i/8, bank = i/128, idx=i%128;
// if disabled -> skip
if (0 == ((channel_bitmap[byte]>>bit) & 0x01))
continue;
// compute address for channel
uint32_t addr = CHANNEL_BANK_0
+ bank*CHANNEL_BANK_OFFSET
+ bit*sizeof(channel_t);
+ idx*sizeof(channel_t);
if (nullptr == data(addr, 0))
image(0).addElement(addr, sizeof(channel_t));
}
Expand Down Expand Up @@ -1337,8 +1336,6 @@ D878UVCodeplug::encode(Config *config, bool update)
scan->fromScanListObj(config->scanlists()->scanlist(i), config);
}

/// @bug Implement analog contact D878UV code-plug encoding.
/// @bug Implement GPS D878UV code-plug encoding.
return true;
}

Expand Down Expand Up @@ -1462,9 +1459,5 @@ D878UVCodeplug::decode(Config *config)
ch->linkChannelObj(ctx.getChannel(i), ctx);
}

/// @bug Implement analog contact D878UV code-plug decoding.
/// @bug Implement GPS D878UV code-plug decoding.
/// @bug Implement Roaming D878UV code-plug decoding.

return true;
}
2 changes: 0 additions & 2 deletions lib/hid_interface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ HID::identifier() {

bool
HID::read_start(uint32_t bank, uint32_t addr) {
/// @bug perform bank selection here
return true;
}

Expand Down Expand Up @@ -136,7 +135,6 @@ HID::read_finish()

bool
HID::write_start(uint32_t bank, uint32_t addr) {
/// @todo Perform bank selection here.
return true;
}

Expand Down
3 changes: 1 addition & 2 deletions lib/libdmrconf.hh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* configuration of the radio and from which the actual binary code-plug for each radio is derived.
* If a radio does not support a particular feature within the configuration, it simply gets
* ignored. The configuration language as well as classes for reading and writing config files are
* documented in the @link conffile config-file module@endlink.
* documented in the <a href="https://dm3mat.darc.de/qdmr/manual/#conf">manual</a>.
*/

#ifndef __LIBDMRCONF_HH__
Expand All @@ -40,7 +40,6 @@
#include "config.hh"
#include "codeplug.hh"
#include "csvreader.hh"
#include "csvreader.hh"

#include "radio.hh"
#include "uv390.hh"
Expand Down
2 changes: 1 addition & 1 deletion lib/signaling.hh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

/** Contains the enum and utility functions to deal with analog signaling like
* CTCSS and DCS.
* @ingroup util */
* @ingroup conf */
namespace Signaling
{
/** This huge enum lists all possible RX/TX tones that can be associated with analog channels.
Expand Down

0 comments on commit 2382dd1

Please sign in to comment.