Skip to content

Commit

Permalink
Fixed trims listing in diagnostics screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardclli committed Oct 28, 2023
1 parent 115f786 commit cf55bde
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion radio/src/gui/colorlcd/radio_diagkeys.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@

#include "hal/rotary_encoder.h"

#if defined(PCBPL18)
static const uint8_t _trimMap[MAX_TRIMS * 2] = {8, 9, 10, 11, 12, 13, 14, 15, 2, 3, 4, 5, 0, 1, 6, 7};
#else
static const uint8_t _trimMap[MAX_TRIMS * 2] = {6, 7, 4, 5, 2, 3, 0, 1, 8, 9, 10, 11};
#endif

#if !defined(PCBNV14)
#if !(defined(PCBNV14) || defined(PCBPL18))
static EnumKeys get_ith_key(uint8_t i)
{
auto supported_keys = keysGetSupported();
Expand Down

0 comments on commit cf55bde

Please sign in to comment.