Skip to content

Commit 603446d

Browse files
committed
fix(version): fix minor number check @arduinomnomnom (#148)
Closes #148
1 parent 99b2103 commit 603446d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/ESP_PanelVersions.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/* Library Version */
1212
#define ESP_PANEL_VERSION_MAJOR 0
1313
#define ESP_PANEL_VERSION_MINOR 2
14-
#define ESP_PANEL_VERSION_PATCH 2
14+
#define ESP_PANEL_VERSION_PATCH 3
1515

1616
/* File `ESP_Panel_Conf.h` */
1717
#define ESP_PANEL_CONF_VERSION_MAJOR 0
@@ -49,7 +49,7 @@
4949
#error "The file `ESP_Panel_Conf.h` version is not compatible. Please update it with the file from the library"
5050
#elif ESP_PANEL_CONF_FILE_VERSION_MINOR < ESP_PANEL_CONF_VERSION_MINOR
5151
#warning "The file `ESP_Panel_Conf.h` version is outdated. Some new configurations are missing"
52-
#elif ESP_PANEL_CONF_FILE_VERSION_PATCH > ESP_PANEL_VERSION_PATCH
52+
#elif ESP_PANEL_CONF_FILE_VERSION_MINOR > ESP_PANEL_CONF_VERSION_MINOR
5353
#warning "The file `ESP_Panel_Conf.h` version is newer than the library. Some new configurations are not supported"
5454
#endif /* ESP_PANEL_CONF_INCLUDE_INSIDE */
5555
#endif /* ESP_PANEL_CONF_FILE_SKIP */
@@ -91,11 +91,11 @@
9191
#if ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MAJOR != ESP_PANEL_BOARD_CUSTOM_VERSION_MAJOR
9292
#error "The file `ESP_Panel_Board_Custom.h` version is not compatible. Please update it with the file from the library"
9393
#endif
94-
// Only check the other versions if not skip the file
95-
#if !defined(ESP_PANEL_BOARD_FILE_SKIP)
94+
// Only check the other versions if not skip the file and not use the supported board
95+
#if !defined(ESP_PANEL_BOARD_FILE_SKIP) && !ESP_PANEL_USE_SUPPORTED_BOARD
9696
#if ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR < ESP_PANEL_BOARD_CUSTOM_VERSION_MINOR
9797
#warning "The file `ESP_Panel_Board_Custom.h` version is outdated. Some new configurations are missing"
98-
#elif ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR > ESP_PANEL_BOARD_CUSTOM_VERSION_PATCH
98+
#elif ESP_PANEL_BOARD_CUSTOM_FILE_VERSION_MINOR > ESP_PANEL_BOARD_CUSTOM_VERSION_MINOR
9999
#warning "The file `ESP_Panel_Board_Custom.h` version is newer than the library. Some new configurations are not supported"
100100
#endif
101101
#endif

0 commit comments

Comments
 (0)