0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 12:32:05 +01:00

minus one

This commit is contained in:
2025-12-31 20:34:32 +01:00
parent 4650039589
commit ada8b56a7c

View File

@@ -69,7 +69,7 @@ function RftInstance:start()
local total_segments = math.ceil(#self.file_data / 5)
local last_stream = false
if stream == math.min(get_available_rds_streams(), get_rds_streams()) then last_stream = true end
if (stream-1) == math.min(get_available_rds_streams(), get_rds_streams()) 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