[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:
kbx81
2026-09-02 21:25:34 -05:00
parent dde216d8c8
commit e723d404e2
@@ -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;
}