mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-03-09 16:58:12 +01:00
Allow to disable more drivers and features in order to reduce binary size (#1500)
* Update obk_config.h * Update obk_config.h * shared * fx * he * fix * fx * ffff * F * T * tre * fcx * leeed * ww * w * fx * t * ENABLE_OLD_YAML_GENERATOR * w * startyuip[ * dis all * remove test post * ENABLE_HTTP_SEND * extra guard * ENABLE_TCP_COMMANDLINE * better OBK_DISABLE_ALL_DRIVERS * tr * ENABLE_PING_WATCHDOG * ENABLE_HA_DISCOVERY * TEST WITH EMPTY USER_MAIN * fx * no mqtt * nm * tr * ENABLE_MQTT * Update cmd_newLEDDriver.c * tr * header * fx * Update user_main.c * t * Update hal_main_bk7231.c * w * ENABLE_DRIVER_IR * RESTORE * fx * #warning "Platform not defined" * fx 1 * Update obk_config.h * ENABLE_DRIVER_TESTPOWER * DS1820 * fx * fx * enable DHT on W800 * Update Makefile * ntp w800 * ntp * ssdp * OWM AND CHARTS * why utils net has flash pub included * nmakefile only, no refs * makefile only * drv * Update Makefile * drcs * ENABLE_DRIVER_BMP280 * Update Makefile * d * ENABLE_I2C * Update Makefile * fin
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include "../driver/drv_public.h"
|
||||
#include "../new_pins.h"
|
||||
|
||||
#if ENABLE_HA_DISCOVERY
|
||||
|
||||
/*
|
||||
Abbreviated node names - https://www.home-assistant.io/docs/mqtt/discovery/
|
||||
Light - https://www.home-assistant.io/integrations/light.mqtt/
|
||||
@@ -367,6 +369,7 @@ HassDeviceInfo* hass_init_relay_device_info(int index, ENTITY_TYPE type, bool bT
|
||||
return info;
|
||||
}
|
||||
|
||||
#if ENABLE_LED_BASIC
|
||||
/// @brief Initializes HomeAssistant light device discovery storage.
|
||||
/// @param type
|
||||
/// @return
|
||||
@@ -433,6 +436,7 @@ HassDeviceInfo* hass_init_light_device_info(ENTITY_TYPE type) {
|
||||
|
||||
return info;
|
||||
}
|
||||
#endif
|
||||
|
||||
/// @brief Initializes HomeAssistant binary sensor device discovery storage.
|
||||
/// @param index
|
||||
@@ -758,3 +762,5 @@ void hass_free_device_info(HassDeviceInfo* info) {
|
||||
|
||||
os_free(info);
|
||||
}
|
||||
|
||||
#endif // ENABLE_HA_DISCOVERY
|
||||
|
||||
Reference in New Issue
Block a user