mirror of
https://github.com/k3ng/k3ng_rotator_controller.git
synced 2025-01-23 21:08:04 +00:00
2018.02.05.01
Disabled free memory check in DEBUG_DUMP for TEENSYDUINO to fix compilation erroring out (Thanks, Martin, HS0ZED)
This commit is contained in:
parent
db699f743e
commit
2b28ad4cdf
@ -336,6 +336,9 @@
|
||||
2018.02.02.01
|
||||
Minor updates to DEBUG_ACCEL
|
||||
|
||||
2018.02.05.01
|
||||
Disabled free memory check in DEBUG_DUMP for TEENSYDUINO to fix compilation erroring out (Thanks, Martin, HS0ZED)
|
||||
|
||||
All library files should be placed in directories likes \sketchbook\libraries\library1\ , \sketchbook\libraries\library2\ , etc.
|
||||
Anything rotator_*.* should be in the ino directory!
|
||||
|
||||
@ -345,7 +348,7 @@
|
||||
|
||||
*/
|
||||
|
||||
#define CODE_VERSION "2018.02.02.01"
|
||||
#define CODE_VERSION "2018.02.05.01"
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
#include <EEPROM.h>
|
||||
@ -5482,15 +5485,17 @@ void output_debug(){
|
||||
debug.println("!");
|
||||
}
|
||||
|
||||
void * HP = malloc(4);
|
||||
if (HP) {free(HP);}
|
||||
unsigned long free = (unsigned long)SP - (unsigned long)HP;
|
||||
sprintf(tempstring,"%lu",(unsigned long)free);
|
||||
if ((free < 500) || (free > 10000)){
|
||||
debug.print(F("WARNING: Low memory: "));
|
||||
debug.print(tempstring);
|
||||
debug.println(F("b free"));
|
||||
}
|
||||
#if !defined(TEENSYDUINO)
|
||||
void * HP = malloc(4);
|
||||
if (HP) {free(HP);}
|
||||
unsigned long free = (unsigned long)SP - (unsigned long)HP;
|
||||
sprintf(tempstring,"%lu",(unsigned long)free);
|
||||
if ((free < 500) || (free > 10000)){
|
||||
debug.print(F("WARNING: Low memory: "));
|
||||
debug.print(tempstring);
|
||||
debug.println(F("b free"));
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
debug.println("\n\n\n");
|
||||
|
Loading…
Reference in New Issue
Block a user