Dereference make_preferences object

API changed upstream. Using the dereferenced version.
This commit is contained in:
Geoff Davis 2021-10-23 13:16:48 -05:00
parent ad65768860
commit e20c3148d5

View File

@ -469,9 +469,9 @@ void MitsubishiHeatPump::setup() {
}
// create various setpoint persistence:
cool_storage = global_preferences.make_preference<uint8_t>(this->get_object_id_hash() + 1);
heat_storage = global_preferences.make_preference<uint8_t>(this->get_object_id_hash() + 2);
auto_storage = global_preferences.make_preference<uint8_t>(this->get_object_id_hash() + 3);
cool_storage = global_preferences->make_preference<uint8_t>(this->get_object_id_hash() + 1);
heat_storage = global_preferences->make_preference<uint8_t>(this->get_object_id_hash() + 2);
auto_storage = global_preferences->make_preference<uint8_t>(this->get_object_id_hash() + 3);
// load values from storage:
cool_setpoint = load(cool_storage);