mikalhart / IridiumSBD

Arduino library for RockBLOCK Iridium satellite modem (http://rock7mobile.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Needs extra overloading for 32-bit systems

majenkotech opened this issue · comments

The dbg() and console() overloads used for size_t don't exist on 32-bit systems. On 8-bit systems size_t is the same as uint16_t which gets covered by the uint16_t overload of the functions. On 32-bit systems it's the same as uint32_t and there is no overloading for that variable type.

void IridiumSBD::dbg(uint32_t n)
{
#if ISBD_DIAGS
   if (this->pDiagsStream)
      pDiagsStream->print(n);
#endif
}

void IridiumSBD::console(uint32_t n)
{
   if (this->pConsoleStream)
      pConsoleStream->print(n);
}

Half could be fixed with PR #5, but adding the proper overloading is a better long-term solution.

Thank you @majenkotech. This is fixed in the new 2.0 beta.