diff --git a/src/httpserver/new_http.c b/src/httpserver/new_http.c index aac01f4f3..0e16a0677 100644 --- a/src/httpserver/new_http.c +++ b/src/httpserver/new_http.c @@ -318,14 +318,23 @@ int g_total_templates = sizeof(g_templates)/sizeof(g_templates[0]); #if PLATFORM_XR809 const char *g_header = "

OpenXR809

[Read more][Support project]

"; +#elif PLATFORM_BK7231N + +const char *g_header = "

OpenBK7231N

[Read more][Support project]

"; + #elif PLATFORM_BK7231T const char *g_header = "

OpenBK7231N

[Read more][Support project]

"; +#elif WINDOWS + +const char *g_header = "

OpenBK7231 [Win test]

[Read more][Support project]

"; + #else -const char *g_header = "

OpenBK7231T

[Read more][Support project]

"; - +const char *g_header = "

error

"; +#error "Platform not supported" +Platform not supported #endif diff --git a/src/new_cfg.c b/src/new_cfg.c index 28eea0e30..f02f9d164 100644 --- a/src/new_cfg.c +++ b/src/new_cfg.c @@ -95,9 +95,15 @@ const char *CFG_GetShortDeviceName(){ #elif PLATFORM_XR809 #define DEVICENAME_PREFIX_FULL "OpenXR809" #define DEVICENAME_PREFIX_SHORT "oxr" -#else +#elif PLATFORM_BK7231N +#define DEVICENAME_PREFIX_FULL "OpenBK7231N" +#define DEVICENAME_PREFIX_SHORT "obk" +#elif PLATFORM_BK7231T #define DEVICENAME_PREFIX_FULL "OpenBK7231T" #define DEVICENAME_PREFIX_SHORT "obk" +#else +#error "You must define a platform.." +This platform is not supported, error! #endif void WiFI_GetMacAddress(char *mac) {