Needs extra overloading for 32-bit systems
majenkotech opened this issue · comments
Majenko Technologies commented
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);
}
Majenko Technologies commented
Half could be fixed with PR #5, but adding the proper overloading is a better long-term solution.
Mikal Hart commented
Thank you @majenkotech. This is fixed in the new 2.0 beta.