From b92645c37381bb8be0f4c348b5a402daf2df691b Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Sat, 21 Jan 2023 14:11:46 +0300 Subject: [PATCH] sinowealth: edit a note about active profile index to be more clear --- src/driver-sinowealth.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/driver-sinowealth.c b/src/driver-sinowealth.c index 89d77332..9daff755 100644 --- a/src/driver-sinowealth.c +++ b/src/driver-sinowealth.c @@ -429,7 +429,11 @@ struct sinowealth_data { enum sinowealth_led_format led_type; unsigned int button_count; unsigned int config_size; - /* Cached profile index. This might be incorrect if profile index was changed by another program while we are running. */ + /* Cached profile index. + * This gets incorrect when user switches profiles with button + * bindings. This actually also sends an interrupt, so in the + * future we can start listening for this. + */ unsigned int current_profile_index; unsigned int led_count; struct sinowealth_button_report buttons[SINOWEALTH_NUM_PROFILES];