mikalhart / IridiumSBD

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Callbacks not handled correctly when DIAGNOSTICS not defined.

mikalhart opened this issue · comments

Due to a misunderstanding about how the "weak" attribute works, on certain platforms, sketches that do not have the callback functions defined crash.

Specifically, having a "weak" function declared and then not implementing it (weak or strong) anywhere, does not allow you to write code like this:

   if (ISBDConsoleCallback != NULL)
   {
         ISBDConsoleCallback(this, c);
   }

Fixed in release 2.0.0!