Skip to content

Commit

Permalink
Fix Linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dk307 committed Jan 19, 2024
1 parent 1ec4e40 commit 341080e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@
"sht3x_sensor_device.h": "c",
"scd4x_sensor_device.h": "c"
},
"C_Cpp.errorSquiggles": "disabled"
"C_Cpp.errorSquiggles": "disabled",
"editor.formatOnSave": true
}
5 changes: 2 additions & 3 deletions main/homekit/homekit_integration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,8 @@ void homekit_integration::create_sensor_services_and_chars()
}

const auto sensor_value = get_sensor_value(definition.get_sensor());
auto sensor_char = hap_char_float_create(const_cast<char *>(definition.get_cha_type_uuid().data()),
HAP_CHAR_PERM_PR | HAP_CHAR_PERM_EV,
sensor_value);
auto sensor_char =
hap_char_float_create(const_cast<char *>(definition.get_cha_type_uuid().data()), HAP_CHAR_PERM_PR | HAP_CHAR_PERM_EV, sensor_value);
CHECK_NULL_RESULT(service);

const auto sensor_def = get_sensor_definition(definition.get_sensor());
Expand Down

0 comments on commit 341080e

Please sign in to comment.