From e45f9bfccd47cd8a8407f41606f5290361df29ae Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Wed, 31 Dec 2025 20:36:42 +0100 Subject: [PATCH] now??? --- scripts/1-rft.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/1-rft.lua b/scripts/1-rft.lua index 2bddca4..44d9130 100644 --- a/scripts/1-rft.lua +++ b/scripts/1-rft.lua @@ -69,7 +69,7 @@ function RftInstance:start() local total_segments = math.ceil(#self.file_data / 5) local last_stream = false - if (stream-1) == math.min(get_available_rds_streams(), get_rds_streams()) then last_stream = true end + if stream == (math.min(get_available_rds_streams(), get_rds_streams()) - 1) then last_stream = true end if not self.crc_sent_this_cycle and self.crc_enabled and (self.file_segment % 16 == 0) and (not last_stream) then self.crc_sent_this_cycle = true