mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[glass] NT: Fix return value in StringToDoubleArray (#3208)
This commit is contained in:
committed by
GitHub
parent
af4adf5379
commit
9f563d584a
@@ -266,8 +266,8 @@ static std::shared_ptr<nt::Value> StringToBooleanArray(wpi::StringRef in) {
|
||||
static std::shared_ptr<nt::Value> StringToDoubleArray(wpi::StringRef in) {
|
||||
in = in.trim();
|
||||
if (in.empty()) {
|
||||
return nt::NetworkTableValue::MakeBooleanArray(
|
||||
std::initializer_list<bool>{});
|
||||
return nt::NetworkTableValue::MakeDoubleArray(
|
||||
std::initializer_list<double>{});
|
||||
}
|
||||
if (in.front() == '[') {
|
||||
in = in.drop_front();
|
||||
|
||||
Reference in New Issue
Block a user