mirror of
https://github.com/radio95-rnt/rds95.git
synced 2026-02-26 20:33:53 +01:00
last rds stream always data only on rft
This commit is contained in:
@@ -68,7 +68,8 @@ function RftInstance:start()
|
|||||||
|
|
||||||
local total_segments = math.ceil(#self.file_data / 5)
|
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
|
self.crc_sent_this_cycle = true
|
||||||
local chunk_address = math.floor((self.crc_segment - 1) / 2)
|
local chunk_address = math.floor((self.crc_segment - 1) / 2)
|
||||||
local c = (1 << 12) | (self.crc_mode & 7) << 9 | (chunk_address & 0x1ff)
|
local c = (1 << 12) | (self.crc_mode & 7) << 9 | (chunk_address & 0x1ff)
|
||||||
|
|||||||
Reference in New Issue
Block a user