mirror of
https://github.com/espressif/esp-protocols.git
synced 2025-07-25 16:27:29 +02:00
Merge pull request #376 from david-cermak/bugfix/dte_dual_mode
fix(modem): Fix DUAL_MODE regression from cb6e03ac
This commit is contained in:
@ -33,7 +33,7 @@ DTE::DTE(std::unique_ptr<Terminal> terminal):
|
|||||||
DTE::DTE(const esp_modem_dte_config *config, std::unique_ptr<Terminal> t, std::unique_ptr<Terminal> s):
|
DTE::DTE(const esp_modem_dte_config *config, std::unique_ptr<Terminal> t, std::unique_ptr<Terminal> s):
|
||||||
buffer(config->dte_buffer_size),
|
buffer(config->dte_buffer_size),
|
||||||
cmux_term(nullptr), primary_term(std::move(t)), secondary_term(std::move(s)),
|
cmux_term(nullptr), primary_term(std::move(t)), secondary_term(std::move(s)),
|
||||||
mode(modem_mode::UNDEF)
|
mode(modem_mode::DUAL_MODE)
|
||||||
{
|
{
|
||||||
set_command_callbacks();
|
set_command_callbacks();
|
||||||
}
|
}
|
||||||
@ -41,7 +41,7 @@ DTE::DTE(const esp_modem_dte_config *config, std::unique_ptr<Terminal> t, std::u
|
|||||||
DTE::DTE(std::unique_ptr<Terminal> t, std::unique_ptr<Terminal> s):
|
DTE::DTE(std::unique_ptr<Terminal> t, std::unique_ptr<Terminal> s):
|
||||||
buffer(dte_default_buffer_size),
|
buffer(dte_default_buffer_size),
|
||||||
cmux_term(nullptr), primary_term(std::move(t)), secondary_term(std::move(s)),
|
cmux_term(nullptr), primary_term(std::move(t)), secondary_term(std::move(s)),
|
||||||
mode(modem_mode::UNDEF)
|
mode(modem_mode::DUAL_MODE)
|
||||||
{
|
{
|
||||||
set_command_callbacks();
|
set_command_callbacks();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user