rebootcontroller after updating kernel

This commit is contained in:
maliakal_d 2021-11-09 16:19:53 +01:00
parent 1e134276ca
commit 14ee2087dc
2 changed files with 2 additions and 2 deletions

View File

@ -2166,7 +2166,7 @@ void Detector::updateKernel(const std::string &fname, Positions pos) {
LOG(logINFO) << "Updating Kernel..."; LOG(logINFO) << "Updating Kernel...";
std::vector<char> buffer = readBinaryFile(fname, "Update Kernel"); std::vector<char> buffer = readBinaryFile(fname, "Update Kernel");
pimpl->Parallel(&Module::updateKernel, pos, buffer); pimpl->Parallel(&Module::updateKernel, pos, buffer);
//rebootController(pos); rebootController(pos);
} }
void Detector::rebootController(Positions pos) { void Detector::rebootController(Positions pos) {

View File

@ -760,7 +760,7 @@ class Module : public virtual slsDetectorDefs {
static const int NIOS_ERASE_FLASH_TIME_FPGA = 10; static const int NIOS_ERASE_FLASH_TIME_FPGA = 10;
static const int NIOS_WRITE_TO_FLASH_TIME_FPGA = 45; static const int NIOS_WRITE_TO_FLASH_TIME_FPGA = 45;
static const int NIOS_ERASE_FLASH_TIME_KERNEL = 9; static const int NIOS_ERASE_FLASH_TIME_KERNEL = 9;
static const int NIOS_WRITE_TO_FLASH_TIME_KERNEL = 39; static const int NIOS_WRITE_TO_FLASH_TIME_KERNEL = 40;
}; };
} // namespace sls } // namespace sls