track point count with more than 65535 points

Bug #995858 reported by Régis ROY
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igotu2gpx
New
Undecided
Unassigned

Bug Description

on GT600, device can store up to 262000 points. I think CountCommand (in commands.cpp) should use first byte of the response as the highest order 8 bits of a 24bit values. Code could look like this:

QByteArray CountCommand::sendAndReceive()
{
    // TODO: what is the first byte?
    const QByteArray result = IgotuCommand::sendAndReceive();
    if (result.size() < 3)
        throw IgotuError(IgotuCommand::tr("Response too short"));
    count = qFromBigEndian<quint16>(reinterpret_cast<const uchar*>
            (result.data() + 1));
    count += result.data()[0]<<16;
    ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.