Skip to content

Commit

Permalink
Update magic number name
Browse files Browse the repository at this point in the history
  • Loading branch information
MUSTARDTIGERFPV committed Jul 29, 2024
1 parent 5297dee commit b309fe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WIFI/devWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,13 +775,13 @@ static void HandleWebUpdate()
if (commandMsg.target_component == MAV_COMP_ID_UDP_BRIDGE)
{
shouldForward = false;
constexpr uint16_t MAVLINK_TUNNEL_MSG_TYPE_ELRS_MODE_CHANGE = 0x8;
constexpr uint8_t ELRS_MODE_CHANGE = 0x8;
switch (commandMsg.command)
{
case MAV_CMD_USER_1:
switch ((int)commandMsg.param1)
{
case MAVLINK_TUNNEL_MSG_TYPE_ELRS_MODE_CHANGE:
case ELRS_MODE_CHANGE:
switch ((int)commandMsg.param2)
{
case 0: // TX_NORMAL_MODE
Expand Down

0 comments on commit b309fe5

Please sign in to comment.