We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kts1622
1 parent 2b699b4 commit f1d6c37Copy full SHA for f1d6c37
components/kts1622/example/main/kts1622_example.cpp
@@ -41,9 +41,8 @@ extern "C" void app_main(void) {
41
.auto_init = false,
42
.log_level = espp::Logger::Verbosity::INFO});
43
std::error_code ec;
44
- kts1622.initialize(
45
- ec); // Initialized separately from the constructor since we set auto_init to false
46
- if (ec) {
+ // Initialized separately from the constructor since we set auto_init to false
+ if (!kts1622.initialize(ec)) {
47
logger.error("kts1622 initialization failed: {}", ec.message());
48
return;
49
}
0 commit comments