diff --git a/healthcheck/healthcheck_localization.cpp b/healthcheck/healthcheck_localization.cpp index f433794..cd2b769 100755 --- a/healthcheck/healthcheck_localization.cpp +++ b/healthcheck/healthcheck_localization.cpp @@ -14,7 +14,6 @@ void write_health_status(const std::string& status) { std::ofstream healthFile("/health_status.txt"); healthFile << status; - healthFile.close(); } void msg_callback(const geometry_msgs::msg::PoseWithCovarianceStamped::SharedPtr msg) diff --git a/healthcheck/healthcheck_navigation.cpp b/healthcheck/healthcheck_navigation.cpp index 484c5e8..4c5062b 100644 --- a/healthcheck/healthcheck_navigation.cpp +++ b/healthcheck/healthcheck_navigation.cpp @@ -13,7 +13,6 @@ void write_health_status(const std::string& status) { std::ofstream healthFile("/health_status.txt"); healthFile << status; - healthFile.close(); } void msg_callback(const bond::msg::Status::SharedPtr msg)