← Back to team overview

igotu2gpx team mailing list archive

[Bug 995858] [NEW] track point count with more than 65535 points

 

Public bug reported:

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;
    ...

** Affects: igotu2gpx
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
MobileAction i-gotU USB GPS travel logger Mac/Linux developers, which is
subscribed to igotu2gpx.
https://bugs.launchpad.net/bugs/995858

Title:
  track point count with more than 65535 points

Status in MobileAction i-gotU USB GPS travel logger Mac/Linux support:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/igotu2gpx/+bug/995858/+subscriptions


Follow ups

References