| 270 | } |
| 271 | |
| 272 | bool ParlioPeripheralESPImpl::disable() FL_NOEXCEPT { |
| 273 | if (mTxUnit == nullptr) { |
| 274 | FL_WARN("ParlioPeripheralESP: Cannot disable - not initialized"); |
| 275 | return false; |
| 276 | } |
| 277 | |
| 278 | // Delegate to ESP-IDF |
| 279 | esp_err_t err = parlio_tx_unit_disable(mTxUnit); |
| 280 | if (err != ESP_OK) { |
| 281 | FL_LOG_PARLIO("ParlioPeripheralESP: Failed to disable TX unit: " << err); |
| 282 | return false; |
| 283 | } |
| 284 | |
| 285 | mEnabled = false; |
| 286 | return true; |
| 287 | } |
| 288 | |
| 289 | bool ParlioPeripheralESPImpl::isInitialized() const FL_NOEXCEPT { |
| 290 | // Real hardware: initialized if TX unit handle is valid |
no outgoing calls
no test coverage detected