mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[wpilib] Remove version writes (#8003)
This will use a much different mechanism in the future.
This commit is contained in:
@@ -70,27 +70,6 @@ class PneumaticHub::DataStore {
|
||||
|
||||
auto version = m_moduleObject.GetVersion();
|
||||
|
||||
if (version.FirmwareMajor > 0 && RobotBase::IsReal()) {
|
||||
// Write PH firmware version to roboRIO
|
||||
std::FILE* file = nullptr;
|
||||
file = std::fopen(
|
||||
fmt::format("/tmp/frc_versions/REV_PH_{:0>2}_WPILib_Version.ini",
|
||||
module)
|
||||
.c_str(),
|
||||
"w");
|
||||
if (file != nullptr) {
|
||||
std::fputs("[Version]\n", file);
|
||||
std::fputs(fmt::format("model=REV PH\n").c_str(), file);
|
||||
std::fputs(fmt::format("deviceID={:x}\n", (0x9052600 | module)).c_str(),
|
||||
file);
|
||||
std::fputs(fmt::format("currentVersion={}.{}.{}", version.FirmwareMajor,
|
||||
version.FirmwareMinor, version.FirmwareFix)
|
||||
.c_str(),
|
||||
file);
|
||||
std::fclose(file);
|
||||
}
|
||||
}
|
||||
|
||||
// Check PH firmware version
|
||||
if (version.FirmwareMajor > 0 && version.FirmwareMajor < 22) {
|
||||
throw FRC_MakeError(
|
||||
|
||||
Reference in New Issue
Block a user