I am attempting to use the I2C interface for the SPX-16394 with the Sparkfun Arduino library. I am getting compile errors for the library under Arduino 1.8.13 using the most recent library on a SAMD51 Arduino (Adafruit ItsyBitsy M4).
Help?
Arduino: 1.8.13 (Mac OS X), Board: "Adafruit ItsyBitsy M4 (SAMD51), Enabled, 120 MHz (standard), Small (-Os) (standard), 50 MHz (standard), Arduino, Off"
/Users/kenbiba/Documents/Arduino/libraries/SparkFun_IridiumSBD_I2C_Arduino_Library-master/src/IridiumSBD.cpp: In member function 'int IridiumSBD::getSystemTime(tm&)':
/Users/kenbiba/Documents/Arduino/libraries/SparkFun_IridiumSBD_I2C_Arduino_Library-master/src/IridiumSBD.cpp:237:14: error: aggregate 'tm epoch_start' has incomplete type and cannot be defined
237 | struct tm epoch_start;
| ^~~~~~~~~~~
/Users/kenbiba/Documents/Arduino/libraries/SparkFun_IridiumSBD_I2C_Arduino_Library-master/src/IridiumSBD.cpp:257:24: error: 'mktime' was not declared in this scope; did you mean 'mktemp'?
257 | time_t epoch_time = mktime(&epoch_start);
| ^~~~~~
| mktemp
/Users/kenbiba/Documents/Arduino/libraries/SparkFun_IridiumSBD_I2C_Arduino_Library-master/src/IridiumSBD.cpp:259:16: error: 'localtime' was not declared in this scope
259 | memcpy(&tm, localtime(&now), sizeof tm);
| ^~~~~~~~~
/Users/kenbiba/Documents/Arduino/libraries/SparkFun_IridiumSBD_I2C_Arduino_Library-master/src/IridiumSBD.cpp:259:40: error: invalid application of 'sizeof' to incomplete type 'tm'
259 | memcpy(&tm, localtime(&now), sizeof tm);
| ^~
exit status 1
Error compiling for board Adafruit ItsyBitsy M4 (SAMD51).
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.