diff --git a/include/mcc/mcc_generic_movecontrols.h b/include/mcc/mcc_generic_movecontrols.h index f055e7c..4e86c8b 100644 --- a/include/mcc/mcc_generic_movecontrols.h +++ b/include/mcc/mcc_generic_movecontrols.h @@ -185,7 +185,7 @@ struct MccMovementPathFile { auto tp = std::chrono::duration_cast(tdata.mountPos.epoch().UTC().time_since_epoch()); - const std::string_view d_fmt = "{:f14.8}"; + const std::string_view d_fmt = "{:14.8f}"; const auto v = std::views::repeat(d_fmt, 7) | std::views::join_with(' '); std::string fmt = "{} " + std::string(v.begin(), v.end()) + " {}"; @@ -205,7 +205,7 @@ struct MccMovementPathFile { _buffer.clear(); } - bool saveToFile(std::string const& filename, std::ios_base::openmode mode = std::ios_base::trunc) + bool saveToFile(std::string const& filename, std::ios_base::openmode mode = std::ios::out | std::ios::trunc) { if (filename.empty()) { return true;