diff --git a/receiver/jfjoch_receiver.cpp b/receiver/jfjoch_receiver.cpp index c6bf8c11..1e1acd20 100644 --- a/receiver/jfjoch_receiver.cpp +++ b/receiver/jfjoch_receiver.cpp @@ -53,12 +53,13 @@ AcquisitionDevice *SetupAcquisitionDevice(const nlohmann::json &input, uint16_t std::vector tmp(RAW_MODULE_SIZE); auto filename = input["custom_test_frame"].get(); std::fstream file(filename.c_str(), std::fstream::in | std::fstream::binary); - file.read((char *) tmp.data(),RAW_MODULE_SIZE * sizeof(uint16_t)); + file.read((char *) tmp.data(), RAW_MODULE_SIZE * sizeof(uint16_t)); pci_dev->SetCustomInternalGeneratorFrame(tmp); } ret = pci_dev; + } #ifdef JFJOCH_USE_IBVERBS - } else if (input.contains("type") && (input["type"] == "mlx_raw_eth")) { + else if (input.contains("type") && (input["type"] == "mlx_raw_eth")) { auto mlx_dev = new MlxRawEthDevice(pci_slot, data_stream, frame_buffer_size, numa_node); mlx_dev->SetIPv4Address(ipv4_addr); mlx_dev->SetMACAddress(MacAddressFromStr(input["mac_addr"].get()));