move on_second_tick callout to on_idle event, also provide a flag to detect interrupt...
[clinton/Smoothieware.git] / src / libs / utils.cpp
index 7b21418..883652e 100644 (file)
@@ -13,6 +13,7 @@ using namespace std;
 using std::string;
 #include <cstring>
 
+volatile bool _isr_context = false;
 
 uint16_t get_checksum(string to_check){
    // From: http://en.wikipedia.org/wiki/Fletcher%27s_checksum