- int lastcsw = -1,
- lastucsw = -1,
- lastToneburst = -1,
- curRotorPos = -1;
- it->m_frontend->getData(0, lastcsw);
- it->m_frontend->getData(1, lastucsw);
- it->m_frontend->getData(2, lastToneburst);
- it->m_frontend->getData(6, curRotorPos);
-
- if (csw != lastcsw || ucsw != lastucsw ||
- toneburst != lastToneburst || curRotorPos != sat.orbital_position )
+ int ocsw = -1,
+ oucsw = -1,
+ oToneburst = -1,
+ oRotorPos = -1;
+ it->m_frontend->getData(0, ocsw);
+ it->m_frontend->getData(1, oucsw);
+ it->m_frontend->getData(2, oToneburst);
+ it->m_frontend->getData(6, oRotorPos);
+
+ eDebug("compare csw %02x == lcsw %02x",
+ csw, ocsw);
+ if ( diseqc )
+ eDebug("compare ucsw %02x == lucsw %02x\ncompare toneburst %02x == oToneburst %02x",
+ ucsw, oucsw, toneburst, oToneburst);
+ if ( rotor )
+ eDebug("compare pos %d == current pos %d",
+ sat.orbital_position, oRotorPos);
+
+ if ( (csw != ocsw) ||
+ ( diseqc && (ucsw != oucsw || toneburst != oToneburst) ) ||
+ ( rotor && oRotorPos != sat.orbital_position ) )