Ticket #4493: legacy_switch_h_fix.diff

File legacy_switch_h_fix.diff, 894 bytes (added by blake.zero@…, 12 years ago)

possible fix to scan H transponders with legacy SW21

  • libs/libmythtv/diseqc.cpp

     
    12651265
    12661266    const unsigned char *cmds = NULL;
    12671267    uint num_ports = 0;
     1268    uint8_t cmd = 0x00
    12681269
    12691270    // determine polarity from lnb
    12701271    bool horizontal = false;
     
    12961297    if (num_ports)
    12971298        pos %= num_ports;
    12981299
     1300    cmd = cmds[pos]
     1301    if (horizontal)
     1302        cmd |= 0x80;
     1303
    12991304    VERBOSE(VB_CHANNEL, LOC + QString("Changing to Legacy switch port %1/%2")
    13001305            .arg(pos + 1).arg(num_ports));
    13011306
    13021307    // send command
    13031308    if (ioctl(m_tree.GetFD(), FE_DISHNETWORK_SEND_LEGACY_CMD,
    1304               cmds[pos]) == -1)
     1309              cmd) == -1)
    13051310    {
    13061311        VERBOSE(VB_IMPORTANT, LOC_ERR +
    13071312                "FE_DISHNETWORK_SEND_LEGACY_CMD failed" + ENO);