macro_rules! update_thermal_set_values {
(
$updater:expr,
$off_temp:expr,
$on_temp:expr,
$lock_flag:expr,
$location:expr
) => { ... };
}Expand description
A macro to update set values from a data source and handle logging on failure.
This macro encapsulates the logic for:
- Calling an
update_set_valuemethod on a given updater. - On failure, logging the error using a “log-once” pattern.
- On success, resetting the “log-once” flag.