mirror of
https://github.com/esphome/esphome.git
synced 2026-09-03 19:46:02 +00:00
[nextion] Fix inline doc parameter types for page and touch callbacks (#14972)
This commit is contained in:
@@ -1160,13 +1160,13 @@ class Nextion : public NextionBase, public PollingComponent, public uart::UARTDe
|
||||
|
||||
/** Add a callback to be notified when the nextion changes pages.
|
||||
*
|
||||
* @param callback The void(std::string) callback.
|
||||
* @param callback The void(uint8_t) callback.
|
||||
*/
|
||||
template<typename F> void add_new_page_callback(F &&callback) { this->page_callback_.add(std::forward<F>(callback)); }
|
||||
|
||||
/** Add a callback to be notified when Nextion has a touch event.
|
||||
*
|
||||
* @param callback The void() callback.
|
||||
* @param callback The void(uint8_t, uint8_t, bool) callback.
|
||||
*/
|
||||
template<typename F> void add_touch_event_callback(F &&callback) {
|
||||
this->touch_callback_.add(std::forward<F>(callback));
|
||||
|
||||
Reference in New Issue
Block a user