Skip to content

Commit f1d6c37

Browse files
authored
feat(kts1622): Update kts1622 to allow initial specification of output values (#532)
1 parent 2b699b4 commit f1d6c37

File tree

2 files changed

+161
-87
lines changed

2 files changed

+161
-87
lines changed

components/kts1622/example/main/kts1622_example.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ extern "C" void app_main(void) {
4141
.auto_init = false,
4242
.log_level = espp::Logger::Verbosity::INFO});
4343
std::error_code ec;
44-
kts1622.initialize(
45-
ec); // Initialized separately from the constructor since we set auto_init to false
46-
if (ec) {
44+
// Initialized separately from the constructor since we set auto_init to false
45+
if (!kts1622.initialize(ec)) {
4746
logger.error("kts1622 initialization failed: {}", ec.message());
4847
return;
4948
}

0 commit comments

Comments
 (0)