Options debug continued (not finished)

This commit is contained in:
3djc
2019-03-10 09:33:47 +01:00
parent 910298da58
commit 34a8e676d1
3 changed files with 33 additions and 11 deletions
+8 -6
View File
@@ -18,6 +18,7 @@
* GNU General Public License for more details.
*/
#include <opentx.h>
#include "opentx.h"
class Pxx2Telemetry
@@ -64,13 +65,14 @@ void processReceiverSettingsFrame(uint8_t module, uint8_t * frame)
if (moduleSettings[module].mode != MODULE_MODE_RECEIVER_SETTINGS) {
return;
}
for (uint8_t pin=0; pin<24; pin++) {
reusableBuffer.receiverSetup.channelMapping[pin] = frame[5 + pin];
TRACE("Processing Frame");
if (reusableBuffer.receiverSetup.state == 0x00) {
TRACE("Frame is GET");
for (uint8_t pin = 0; pin < 24; pin++) {
reusableBuffer.receiverSetup.channelMapping[pin] = frame[5 + pin];
}
reusableBuffer.receiverSetup.pwmRate = frame[4] & 0x30;
}
reusableBuffer.receiverSetup.pwmRate = frame[4] & 0x30;
reusableBuffer.receiverSetup.state = 0xFF;
moduleSettings[module].mode = MODULE_MODE_NORMAL;
}