mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-07 18:25:31 +00:00
Implementation of girier MCU driver for 2ch dimmer (#1846)
* Implementation of girier MCU driver for 2ch dimmer * Fixed review notices * makefiles * dpType = 0; // TODO - uninitialized * header * add to vcproj * header * #if ENABLE_DRIVER_GIRIERMCU * clear --------- Co-authored-by: Tester <85486843+openshwprojects@users.noreply.github.com>
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include "../cmnds/cmd_public.h"
|
||||
#include "../cmnds/cmd_enums.h"
|
||||
#include "../driver/drv_tuyaMCU.h"
|
||||
#include "../driver/drv_girierMCU.h"
|
||||
#include "../driver/drv_public.h"
|
||||
#include "../driver/drv_bl_shared.h"
|
||||
#include "../hal/hal_wifi.h"
|
||||
@ -1988,6 +1989,7 @@ void doHomeAssistantDiscovery(const char* topic, http_request_t* request) {
|
||||
dev_info = hass_init_light_singleColor_onChannels(toggle, dimmer, brightness_scale);
|
||||
MQTT_QueuePublish(topic, dev_info->channel, hass_build_discovery_json(dev_info), OBK_PUBLISH_FLAG_RETAIN);
|
||||
hass_free_device_info(dev_info);
|
||||
discoveryQueued = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -3073,6 +3075,7 @@ const char* g_obk_flagNames[] = {
|
||||
"error",
|
||||
"error",
|
||||
"error",
|
||||
"error",
|
||||
};
|
||||
|
||||
void uint64_to_str(uint64_t num, char* str) {
|
||||
|
||||
Reference in New Issue
Block a user