1 if(Device_FrontboardActive() == 0) 2 { 3 frontBoardType = Device_FrontboardType(); 4 if(frontBoardType == FBD_TYPE_GPIO) 5 { 6 system("reboot"); 7 } 8 else 9 { 10 FrontboardWrite(&Data, sizeof(DWORD)); 11 } 12 } 13 else 14 { 15 FrontboardWrite(&Data, sizeof(DWORD)); 16 }