aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fig/FIG0_7.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fig/FIG0_7.cpp b/src/fig/FIG0_7.cpp
index 50a12cf..363fa65 100644
--- a/src/fig/FIG0_7.cpp
+++ b/src/fig/FIG0_7.cpp
@@ -49,6 +49,12 @@ FillStatus FIG0_7::fill(uint8_t *buf, size_t max_size)
{
FillStatus fs;
+ if (max_size < 4) {
+ fs.complete_fig_transmitted = false;
+ fs.num_bytes_written = 0;
+ return fs;
+ }
+
auto ensemble = m_rti->ensemble;
if (ensemble->reconfig_counter < 0) {