Skip to content

Commit

Permalink
Merge pull request #95 from cruwaller/pr-enable-set-vtx-command-input
Browse files Browse the repository at this point in the history
Enable MSP_SET_VTX_CONFIG ESP-NOW input message
  • Loading branch information
pkendall64 committed Jul 9, 2023
2 parents 3a336e7 + 550a5f1 commit f532301
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions src/Tx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,26 @@ void RebootIntoWifi()

void ProcessMSPPacketFromPeer(mspPacket_t *packet)
{
if (packet->function == MSP_ELRS_REQU_VTX_PKT)
{
DBGLN("MSP_ELRS_REQU_VTX_PKT...");
// request from the vrx-backpack to send cached VTX packet
if (cacheFull)
{
sendCached = true;
switch (packet->function) {
case MSP_ELRS_REQU_VTX_PKT: {
DBGLN("MSP_ELRS_REQU_VTX_PKT...");
// request from the vrx-backpack to send cached VTX packet
if (cacheFull)
{
sendCached = true;
}
break;
}
case MSP_ELRS_BACKPACK_SET_PTR: {
DBGLN("MSP_ELRS_BACKPACK_SET_PTR...");
msp.sendPacket(packet, &Serial);
break;
}
case MSP_SET_VTX_CONFIG: {
DBGLN("MSP_SET_VTX_CONFIG...");
msp.sendPacket(packet, &Serial);
break;
}
}
else if (packet->function == MSP_ELRS_BACKPACK_SET_PTR)
{
DBGLN("MSP_ELRS_BACKPACK_SET_PTR...");
msp.sendPacket(packet, &Serial);
}
}

Expand Down

0 comments on commit f532301

Please sign in to comment.