Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable MSP_SET_VTX_CONFIG ESP-NOW input message #95

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 19 additions & 12 deletions src/Tx_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,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