@@ -18,13 +18,19 @@ void SecTouchSniffer::setup() {
1818}
1919
2020void SecTouchSniffer::dump_config () {
21- ESP_LOGCONFIG (TAG , " SecTouchSniffer :" );
21+ ESP_LOGCONFIG (TAG , " SEC-Touch-Sniffer :" );
2222 ESP_LOGCONFIG (TAG , " Time source: %s" , this ->time_ != nullptr ? " RTC" : " uptime fallback" );
2323 if (this ->scan_end_ > 0 ) {
2424 ESP_LOGCONFIG (TAG , " Scan range: %d - %d" , this ->scan_start_ , this ->scan_end_ );
2525 } else {
2626 ESP_LOGCONFIG (TAG , " Scan: not configured (passive mode only)" );
2727 }
28+ if (this ->discovered_ids_ .empty ()) {
29+ ESP_LOGCONFIG (TAG , " Discovered IDs: none" );
30+ } else {
31+ ESP_LOGCONFIG (TAG , " Discovered IDs (%d): %s" , (int ) this ->discovered_ids_ .size (),
32+ this ->build_state_string_ ().c_str ());
33+ }
2834}
2935
3036void SecTouchSniffer::update_scan_switch_ () {
@@ -97,8 +103,7 @@ void SecTouchSniffer::on_queue_empty_() {
97103 this ->scan_retry_pending_ = false ;
98104 }
99105
100- while (this ->current_scan_id_ <= this ->scan_end_ &&
101- this ->parent_ ->is_property_registered (this ->current_scan_id_ )) {
106+ while (this ->current_scan_id_ <= this ->scan_end_ && this ->parent_ ->is_property_registered (this ->current_scan_id_ )) {
102107 ESP_LOGI (TAG , " Scan: skipping registered property_id %d" , this ->current_scan_id_ );
103108 this ->current_scan_id_ ++;
104109 }
0 commit comments