[wpiutil] DataLog: Fix SetMetadata output (#4430)

This commit is contained in:
Peter Johnson
2022-09-22 21:54:55 -07:00
committed by GitHub
parent 8c4af073f4
commit 8767e4a941

View File

@@ -481,7 +481,7 @@ void DataLog::SetMetadata(int entry, std::string_view metadata,
return;
}
std::scoped_lock lock{m_mutex};
uint8_t* buf = StartRecord(entry, timestamp, 5 + 4 + metadata.size(), 5);
uint8_t* buf = StartRecord(0, timestamp, 5 + 4 + metadata.size(), 5);
*buf++ = impl::kControlSetMetadata;
wpi::support::endian::write32le(buf, entry);
AppendStringImpl(metadata);