Macro update_thermal_set_values

Source
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:

  1. Calling an update_set_value method on a given updater.
  2. On failure, logging the error using a “log-once” pattern.
  3. On success, resetting the “log-once” flag.