add missing <string> and <cmath> includes

This commit is contained in:
Reinhold Gschweicher
2022-02-24 22:57:28 +01:00
parent a79f75285f
commit 999888eaf8
4 changed files with 4 additions and 0 deletions

View File

@@ -60,6 +60,7 @@
#define NRF_ERROR_INVALID_ADDR (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address
#define NRF_ERROR_BUSY (NRF_ERROR_BASE_NUM + 17) ///< Busy
#include <stdexcept>
#include <string> // std::to_string()
template<typename T>
void APP_ERROR_HANDLER(T err) {
throw std::runtime_error("APP_ERROR_HANDLER: " + std::to_string(err));