afmt
This commit is contained in:
parent
61fd5d1b62
commit
2b6a33e718
@ -252,9 +252,7 @@ ReturnValue_t CCSDSTime::convertToAsciiWithSecs(int8_t* to, const Clock::TimeOfD
|
|||||||
return returnvalue::FAILED;
|
return returnvalue::FAILED;
|
||||||
}
|
}
|
||||||
int count = snprintf(reinterpret_cast<char*>(to), length,
|
int count = snprintf(reinterpret_cast<char*>(to), length,
|
||||||
"%4" SCNu32 "-%2" SCNu32 "-%2" SCNu32
|
"%4" SCNu32 "-%2" SCNu32 "-%2" SCNu32 "T%2" SCNu32 ":%2" SCNu32 ":%2" SCNu32,
|
||||||
"T%"
|
|
||||||
"2" SCNu32 ":%2" SCNu32 ":%2" SCNu32,
|
|
||||||
from->year, from->month, from->day, from->hour, from->minute, from->second);
|
from->year, from->month, from->day, from->hour, from->minute, from->second);
|
||||||
if (count >= length) {
|
if (count >= length) {
|
||||||
return returnvalue::FAILED;
|
return returnvalue::FAILED;
|
||||||
|
@ -207,7 +207,8 @@ class CCSDSTime {
|
|||||||
|
|
||||||
static ReturnValue_t convertFromASCII(Clock::TimeOfDay_t *to, uint8_t const *from,
|
static ReturnValue_t convertFromASCII(Clock::TimeOfDay_t *to, uint8_t const *from,
|
||||||
uint8_t length);
|
uint8_t length);
|
||||||
static ReturnValue_t convertToAsciiWithSecs(int8_t *to, const Clock::TimeOfDay_t *from, uint8_t length);
|
static ReturnValue_t convertToAsciiWithSecs(int8_t *to, const Clock::TimeOfDay_t *from,
|
||||||
|
uint8_t length);
|
||||||
static uint32_t subsecondsToMicroseconds(uint16_t subseconds);
|
static uint32_t subsecondsToMicroseconds(uint16_t subseconds);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user