|
|
@ -175,6 +175,13 @@ void FPGASocket::finishKerberosHandshake() {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If enabled, reset user FPGA to known good state
|
|
|
|
|
|
|
|
m_config->setGroup("Programming");
|
|
|
|
|
|
|
|
TQString resetScript = m_config->readEntry("userresetscript");
|
|
|
|
|
|
|
|
if (resetScript != "") {
|
|
|
|
|
|
|
|
system(resetScript.ascii());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQDataStream ds(this);
|
|
|
|
TQDataStream ds(this);
|
|
|
|
ds.setPrintableData(true);
|
|
|
|
ds.setPrintableData(true);
|
|
|
|
ds << TQString("OK");
|
|
|
|
ds << TQString("OK");
|
|
|
@ -474,6 +481,14 @@ FPGAServer::FPGAServer(TQObject* parent, int port, KSimpleConfig* config) :
|
|
|
|
exit(1);
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// If enabled, setup control FPGA
|
|
|
|
|
|
|
|
m_config->setGroup("Programming");
|
|
|
|
|
|
|
|
TQString setupControlFPGAScript = m_config->readEntry("controlstartupscript");
|
|
|
|
|
|
|
|
if (setupControlFPGAScript != "") {
|
|
|
|
|
|
|
|
printf("[INFO] Setting up control FPGA\n\r"); fflush(stdout);
|
|
|
|
|
|
|
|
system(setupControlFPGAScript.ascii());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
printf("[INFO] Server started on port %d\n\r", port); fflush(stdout);
|
|
|
|
printf("[INFO] Server started on port %d\n\r", port); fflush(stdout);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|