fix: may be used uninitialized
Dieser Commit ist enthalten in:
Ursprung
7767d5b06a
Commit
4bf74802f1
@ -137,8 +137,8 @@ void Locomotive::update(std::string_view option, std::string_view value)
|
||||
if(option == Option::speedStep)
|
||||
{
|
||||
uint8_t v;
|
||||
fromChars(value, v);
|
||||
m_speedStep = v;
|
||||
if(auto r = fromChars(value, v); r.ec == std::errc())
|
||||
m_speedStep = v;
|
||||
}
|
||||
else if(option == Option::dir)
|
||||
{
|
||||
|
||||
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren