mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: Removed experimental memory check
This commit is contained in:
1 parent
ae7b324378
commit
1c2525b588
1 file changed
+4
-2
@@ -2,7 +2,8 @@
|
||||
|
||||
#include "../Log.h"
|
||||
|
||||
#ifdef ARDUINO
|
||||
//#ifdef ARDUINO
|
||||
#if 0
|
||||
#ifdef __arm__
|
||||
// should use uinstd.h to define sbrk but Due causes a conflict
|
||||
//extern "C" char* sbrk(int incr);
|
||||
@@ -18,7 +19,8 @@ using namespace RNS::Utilities;
|
||||
/*static*/ uint64_t OS::timeOffset = 0;
|
||||
|
||||
/*static*/ int OS::freeMemory() {
|
||||
#ifdef ARDUINO
|
||||
//#ifdef ARDUINO
|
||||
#if 0
|
||||
char top;
|
||||
#ifdef __arm__
|
||||
return &top - reinterpret_cast<char*>(sbrk(0));
|
||||
|
||||
Reference in new issue
Block a user