Skip to content

Commit

Permalink
Update string_format.cpp
Browse files Browse the repository at this point in the history
Fixed bug that showed datetime wrongly formed in AIS app (and probably other apps too) as depicted in portapack-mayhem#88
  • Loading branch information
euquiq committed Jun 30, 2020
1 parent ddd8e65 commit 29526dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/application/string_format.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ std::string to_string_datetime(const rtc::RTC& value, const TimeFormat format) {
}

string += to_string_dec_uint(value.hour(), 2, '0') + ":" +
string += to_string_dec_uint(value.minute(), 2, '0');
to_string_dec_uint(value.minute(), 2, '0');

if ((format == YMDHMS) || (format == HMS))
string += ":" + to_string_dec_uint(value.second(), 2, '0');
Expand Down

0 comments on commit 29526dd

Please sign in to comment.