From 179c5bbe7116ab73788c745c7a3f82392d13b39c Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 31 Dec 2025 20:17:03 +0100 Subject: [PATCH] last rds stream always data only on rft --- scripts/1-rft.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/1-rft.lua b/scripts/1-rft.lua index 7c434ea..b3a4f27 100644 --- a/scripts/1-rft.lua +++ b/scripts/1-rft.lua @@ -68,7 +68,8 @@ function RftInstance:start() local total_segments = math.ceil(#self.file_data / 5) - if not self.crc_sent_this_cycle and self.crc_enabled and (self.file_segment % 16 == 0) and stream == 1 then + local meta_streams = math.min(get_rds_streams(), get_available_rds_streams()) + if not self.crc_sent_this_cycle and self.crc_enabled and (self.file_segment % 16 == 0) and stream <= meta_streams then self.crc_sent_this_cycle = true local chunk_address = math.floor((self.crc_segment - 1) / 2) local c = (1 << 12) | (self.crc_mode & 7) << 9 | (chunk_address & 0x1ff)