Converting simulator JSON defaults.

This commit is contained in:
stephb9959
2021-11-04 08:29:52 -07:00
parent 63e5450146
commit fe764a7cbd

View File

@@ -41,8 +41,13 @@ namespace OpenWifi {
"wallys_dr40x9"};
static bool GooDeviceType(const std::string &D) {
return (std::find_if(cbegin(DefaultDeviceTypes),end(DefaultDeviceTypes),D) != cend(DefaultDeviceTypes));
for(const auto &i:DefaultDeviceTypes) {
if(i==D)
return true;
}
return false;
}
void RESTAPI_simulation_handler::DoPost() {
OWLSObjects::SimulationDetails D;