boardd: use  std::atomic for ignition to ensure thread-safety
diff --git a/selfdrive/boardd/boardd.cc b/selfdrive/boardd/boardd.cc
index 795bf3bf48deb1..0e05fad39364de 100644
--- a/selfdrive/boardd/boardd.cc
+++ b/selfdrive/boardd/boardd.cc
@@ -38,10 +38,10 @@
 
 Panda * panda = NULL;
 std::atomic<bool> safety_setter_thread_running(false);
+std::atomic<bool> ignition(false);
 bool spoofing_started = false;
 bool fake_send = false;
 bool connected_once = false;
-bool ignition = false;
 
 ExitHandler do_exit;
 struct tm get_time(){

ignition access by multiple threads.