diff --git a/firmware/application/file.cpp b/firmware/application/file.cpp index fa0658fe..814f3bde 100644 --- a/firmware/application/file.cpp +++ b/firmware/application/file.cpp @@ -105,10 +105,8 @@ File::Result File::puts(const std::string& string) { const auto result = f_puts(string.c_str(), &f); if( result >= 0 ) { return { static_cast(result) }; - } else if( result == EOF ) { - return { static_cast(f_error(&f)) }; } else { - return { static_cast(FR_UNEXPECTED) }; + return { static_cast(FR_EOF) }; } }