1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 01:05:27 +03:00

Unified BUILD_BUG_ON and STATIC_ASSERT into STATIC_ASSERT.

This commit is contained in:
mikeller 2018-08-19 01:41:26 +12:00
parent 54dd79ac69
commit 70ac9423c7
10 changed files with 36 additions and 33 deletions

View file

@ -1095,7 +1095,7 @@ void osdInit(displayPort_t *osdDisplayPortToUse)
return;
}
BUILD_BUG_ON(OSD_POS_MAX != OSD_POS(31,31));
STATIC_ASSERT(OSD_POS_MAX == OSD_POS(31,31), OSD_POS_MAX_incorrect);
osdDisplayPort = osdDisplayPortToUse;
#ifdef USE_CMS