Don't fire compiler warnings on missing driver configuration

This commit is contained in:
Tomas Rezucha 2021-08-04 10:11:18 +02:00
parent 803c58774c
commit 01dc1259f8
4 changed files with 9 additions and 11 deletions

View file

@ -106,7 +106,7 @@ void ssd1306_init(void)
orientation_1 = 0xA0;
orientation_2 = OLED_CMD_SET_COM_SCAN_MODE_NORMAL;
#else
#error "Unsupported orientation"
assert(false); // Invalid configuration of SSD1306 driver
#endif
uint8_t display_mode = 0;