mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Replace std::cout and std::cerr with fmt::print() (#3519)
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
|
||||
#include <fmt/core.h>
|
||||
#include <hal/DriverStation.h>
|
||||
#include <hal/HALBase.h>
|
||||
#include <hal/Main.h>
|
||||
@@ -21,9 +21,9 @@ int main() {
|
||||
while (cycleCount < 100) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
cycleCount++;
|
||||
std::cout << "Count: " << cycleCount << std::endl;
|
||||
fmt::print("Count: {}\n", cycleCount);
|
||||
}
|
||||
|
||||
std::cout << "DONE" << std::endl;
|
||||
fmt::print("DONE\n");
|
||||
HAL_ExitMain();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user