Remove all the references to using non-native save windows. It didn't fix linux and it broke Windows and linux. SO, yeah, this is reverting that.
Also, 0 out data bytes that aren't used for the native format. The native format always shows 8 data bytes even if the frame didn't have that many. That way programs like Excel will still have data in all of the positions.
This commit is contained in:
+4
-1
@@ -226,7 +226,10 @@ bool FrameFileIO::saveNativeCSVFile(QString filename, const QVector<CANFrame>* f
|
||||
|
||||
for (int temp = 0; temp < 8; temp++)
|
||||
{
|
||||
outFile->write(QString::number(frames->at(c).data[temp], 16).toUpper().rightJustified(2, '0').toUtf8());
|
||||
if (temp < frames->at(c).len)
|
||||
outFile->write(QString::number(frames->at(c).data[temp], 16).toUpper().rightJustified(2, '0').toUtf8());
|
||||
else
|
||||
outFile->write("00");
|
||||
outFile->putChar(44);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user