FastLED 3.9.15
Loading...
Searching...
No Matches

◆ error()

void SketchHalt::error ( const char * message)
inline

Halt sketch execution with an error message.

Definition at line 47 of file SketchHalt.h.

47 {
48 mHalted = true;
49 mMessage = message;
50 fl::cout << "ERROR: HALT: " << mMessage.c_str() << "\n";
52 }
bool mHalted
Definition SketchHalt.h:55
fl::u32 mLastPrintTime
Definition SketchHalt.h:57
fl::string mMessage
Definition SketchHalt.h:56
ostream cout
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.

References fl::cout, mHalted, fl::millis(), mLastPrintTime, and mMessage.

+ Here is the call graph for this function: