| 79 | } |
| 80 | |
| 81 | std::shared_ptr<tt::hal::touch::TouchDriver> _Nullable EspLcdTouch::getTouchDriver() { |
| 82 | assert(lvglDevice == nullptr); // Still attached to LVGL context. Call stopLvgl() first. |
| 83 | |
| 84 | if (touchHandle == nullptr) { |
| 85 | return nullptr; |
| 86 | } |
| 87 | |
| 88 | if (touchDriver == nullptr) { |
| 89 | touchDriver = std::make_shared<EspLcdTouchDriver>(touchHandle); |
| 90 | } |
| 91 | |
| 92 | return touchDriver; |
| 93 | } |
no outgoing calls
no test coverage detected