Add mDNS attribute

This commit is contained in:
Phat Nguyen committed 2024-02-29 10:22:05 +07:00
1 parent b94112e22a
commit 5de3a34dd0
6 files changed
+32 -1

No files matched your search

+13
View File
@@ -335,6 +335,19 @@ const BoardDef *getBoardDef(BoardType def) {
return &bsps[def];
}
/**
* @brief Get the Board Name
*
* @param type BoarType
* @return const char*
*/
const char *getBoardDefName(BoardType type) {
if (type >= _BOARD_MAX) {
return NULL;
}
return bsps[type].name;
}
#if defined(ESP8266)
#define bspPrintf(c, ...) \
if (_debug != nullptr) { \
+1
View File
@@ -83,6 +83,7 @@ struct BoardDef {
};
const BoardDef *getBoardDef(BoardType def);
const char *getBoardDefName(BoardType type);
void printBoardDef(Stream *_debug);
#endif /** _AIR_GRADIENT_BOARD_DEF_H_ */