diff --git a/scripts/1-rft.lua b/scripts/1-rft.lua index 44d9130..db7b4eb 100644 --- a/scripts/1-rft.lua +++ b/scripts/1-rft.lua @@ -89,7 +89,7 @@ function RftInstance:start() if self.crc_segment > #self.crc_data then self.crc_segment = 1 end return true, (2 << 14), self.aid, c, (high_byte << 8) | low_byte - else self.crc_sent_this_cycle = false end + elseif self.crc_sent_this_cycle then self.crc_sent_this_cycle = false end local base = self.file_segment * 5 + 1 local function b(i) return string.byte(self.file_data, base + i) or 0 end