windytan / redsea

Command-line FM-RDS decoder with JSON output.
MIT License
390 stars 36 forks source link

Possible length off-by-one in RadioText+ decode #9

Closed nivex closed 9 years ago

nivex commented 9 years ago

Looks like RadioText+ might be dropping the last character. I'm inferring this from the standard RT messages preceeding it:

17EF  2A TP:0 PTY:10 RT:'B93.9 Close Your Eyes Parmalee ↵                                ' RT_OK
  RadioText+: 
    Item running
    Tag item.artist: Parmale
    Tag item.title: Close Your Eye
windytan commented 9 years ago

Thanks, this is actually the first time I see any output from the RT+ decoder, I've been writing it blind without test data.

windytan commented 9 years ago

It's indeed length + 1 in the spec, fixed now.