diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/flapjack/board.c | 1 | ||||
-rw-r--r-- | board/flapjack/board.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/board/flapjack/board.c b/board/flapjack/board.c index 46b2d584d7..843045b3d3 100644 --- a/board/flapjack/board.c +++ b/board/flapjack/board.c @@ -61,6 +61,7 @@ static const struct mv_to_id panels[] = { { PANEL_BOE_HIMAX8279D8P, 280 }, }; BUILD_ASSERT(ARRAY_SIZE(panels) < PANEL_COUNT); +BUILD_ASSERT(PANEL_COUNT <= PANEL_UNINITIALIZED); uint16_t board_version; uint8_t oem; diff --git a/board/flapjack/board.h b/board/flapjack/board.h index 11485a3eb3..0235dc1a29 100644 --- a/board/flapjack/board.h +++ b/board/flapjack/board.h @@ -262,7 +262,7 @@ enum panel_id { PANEL_BOE_HIMAX8279D10P, PANEL_BOE_HIMAX8279D8P, PANEL_COUNT, - PANEL_UNINITIALIZED = 0xff, + PANEL_UNINITIALIZED = 0xf, }; /* power signal definitions */ |