mirror of
https://github.com/esphome/esphome.git
synced 2026-09-11 15:27:33 +00:00
[serial_proxy] Add set_mode to the benchmark stub
The benchmark harness compiles api_connection.cpp against stub component headers, so the stub needs the new client-request method.
This commit is contained in:
@@ -40,6 +40,7 @@ class SerialProxy {
|
||||
return SerialProxyResult::SERIAL_PROXY_RESULT_OK;
|
||||
}
|
||||
void write_from_client(api::APIConnection *api_connection, const uint8_t *data, size_t len) {}
|
||||
void set_mode(api::APIConnection *api_connection, api::enums::SerialProxyMode mode) {}
|
||||
SerialProxyResult set_modem_pins(api::APIConnection *api_connection, uint32_t line_states) {
|
||||
return SerialProxyResult::SERIAL_PROXY_RESULT_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user