#ifndef __ASSERT_H__
#define __ASSERT_H__

#include <hardware.h>

#ifdef ARDUINO
extern "C" void assert(int cond) {
  if (!cond) {
    SPI.end();
    while (1) {
      hardware_user_led_set(1);
      delay(100);
      hardware_user_led_set(0);
      delay(100);
    }
  }
}
#endif

#endif /* __ASSERT_H__ */
