support reading output channels with no size/offset

This commit is contained in:
Matthew Kennedy 2024-06-09 15:45:31 -07:00
parent 25b6082d09
commit dfc2da083b
1 changed files with 6 additions and 0 deletions

View File

@ -601,6 +601,12 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, uint8_t* data, int i
switch(command)
{
case TS_OUTPUT_COMMAND:
if (incomingPacketSize == 1) {
// Read command with no offset/count, read the whole thing
offset = 0;
count = TS_TOTAL_OUTPUT_SIZE;
}
cmdOutputChannels(tsChannel, offset, count);
break;
case TS_HELLO_COMMAND: