mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Fixes SetEntryRaw to actually set raw.
This commit is contained in:
@@ -532,11 +532,11 @@ int NT_SetEntryRaw(const char *name, size_t name_len, const char *raw,
|
||||
size_t raw_len, int force) {
|
||||
if (force != 0) {
|
||||
nt::SetEntryTypeValue(StringRef(name, name_len),
|
||||
Value::MakeString(StringRef(raw, raw_len)));
|
||||
Value::MakeRaw(StringRef(raw, raw_len)));
|
||||
return 1;
|
||||
} else {
|
||||
return nt::SetEntryValue(StringRef(name, name_len),
|
||||
Value::MakeString(StringRef(raw, raw_len)));
|
||||
Value::MakeRaw(StringRef(raw, raw_len)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user