usb_log
Christopher Young 2017-04-24 11:21:25 -04:00
rodzic 80daa0f51a
commit b99bd7b2c3
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1382,8 +1382,8 @@ func main() {
globalStatus.HardwareBuild = "FlightBox"
debugLogf = debugLog_FB
dataLogFilef = dataLogFile_FB
err = os.Stat("/media/logdrive")
err2 := os.Stat("/dev/sda1")
_, err = os.Stat("/media/logdrive")
_, err2 := os.Stat("/dev/sda1")
// /media/logdrive and /dev/sda1 need to exist to set the external logfile paths.
if !os.IsNotExist(err) && !os.IsNotExist(err2) {
debugLogf = debugLog_FB_external