Skip to content

Commit

Permalink
feat(lightbulb): Update the threshold for triggering HAL forced stop …
Browse files Browse the repository at this point in the history
…when lower layer transmission fails to 6. After the update, HAL forced stop fade will only be triggered if all 5 channels fail
  • Loading branch information
shixinke-orion committed May 27, 2024
1 parent a7d478b commit 6f41314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/led/lightbulb_driver/src/hal_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static void gpio_reverse(int gpio_num)
#define MAX_TABLE_SIZE (256) // Maximum size for linear and gamma correction tables.
#define DEFAULT_CURVE_COE (1.0) // Default coefficient for gamma correction curve.
#define HAL_OUT_MAX_CHANNEL (5) // Maximum number of output channels in the Hardware Abstraction Layer (HAL).
#define ERROR_COUNT_THRESHOLD (1) // Threshold for errors in the lower interface.
#define ERROR_COUNT_THRESHOLD (6) // Threshold for errors in the lower interface.

typedef esp_err_t (*x_init_t)(void *config, void(*hook_func)(void *));
typedef esp_err_t (*x_regist_channel_t)(int channel, int value);
Expand Down

0 comments on commit 6f41314

Please sign in to comment.