We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b8bcf1 commit 76639f8Copy full SHA for 76639f8
rover/rover.ino
@@ -221,3 +221,25 @@ void syncTO()
221
}
222
223
224
+
225
+/*
226
+ * freeRam - free RAM in bytes
227
+ *
228
+ * Serial.println("\n[memCheck]");
229
+ * Serial.println(freeRam());
230
+ */
231
+int freeRam()
232
+{
233
+ extern int __heap_start, *__brkval;
234
+ int v;
235
+ return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
236
+}
237
238
+// Interrupt handler for the unhandled. Will this do anything?
239
+// https://stackoverflow.com/questions/23377948/arduino-avr-atmega-microcontroller-random-resets-jumps-or-variable-data-corrup
240
241
+ISR(BADISR_vect)
242
243
+ for (;;) UDR0='!';
244
245
+*/
0 commit comments