Flowview will now automatically set the grid to support the frame data
length even for CAN-FD frames (Use Middle Mouse Button to force it to different sizes)
This commit is contained in:
@@ -636,6 +636,7 @@ void FlowViewWindow::changeID(QString newID)
|
|||||||
|
|
||||||
playbackTimer->stop();
|
playbackTimer->stop();
|
||||||
playbackActive = false;
|
playbackActive = false;
|
||||||
|
int maxBytes = 0;
|
||||||
for (int x = 0; x < modelFrames->count(); x++)
|
for (int x = 0; x < modelFrames->count(); x++)
|
||||||
{
|
{
|
||||||
CANFrame thisFrame = modelFrames->at(x);
|
CANFrame thisFrame = modelFrames->at(x);
|
||||||
@@ -643,8 +644,10 @@ void FlowViewWindow::changeID(QString newID)
|
|||||||
{
|
{
|
||||||
thisFrame.payload().clear();
|
thisFrame.payload().clear();
|
||||||
frameCache.append(thisFrame);
|
frameCache.append(thisFrame);
|
||||||
|
if (thisFrame.payload().length() > maxBytes) maxBytes = thisFrame.payload().length();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ui->flowView->setBytesToDraw(maxBytes);
|
||||||
currentPosition = 0;
|
currentPosition = 0;
|
||||||
|
|
||||||
if (frameCache.count() == 0) return;
|
if (frameCache.count() == 0) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user