     state_diag  = !state_diag;
 }
 
-void call_connect()
-{
-  Particle.connect();
-}
+#endif

int LEDIR=D1;
bool red_state;
bool ir_state;
bool state_diag;

#include<math.h>



//SYSTEM_MODE(MANUAL);

Timer change_led_timer(1500, change_led_type);
//Timer change_ir_timer(6000, change_ir_type);
//Timer ir_timer(6000, read_ir_and_calc);
//Timer call_connect_timer(20000, call_connect);
