1 diff --git a/src/time_date_section.cpp b/src/time_date_section.cpp
2 index f0e6cf6..97ac02a 100644 (file)
3 --- a/src/time_date_section.cpp
4 +++ b/src/time_date_section.cpp
7 TimeAndDateSection::TimeAndDateSection(const uint8_t * const buffer) : ShortSection(buffer)
9 - if (sectionLength > 8) {
10 + if (sectionLength >= 5) {
11 utcTimeMjd = UINT16(&buffer[3]);
12 utcTimeBcd = (buffer[5] << 16) | UINT16(&buffer[6]);