Skip to content

Commit 0536ca9

Browse files
authored
Merge pull request #41 from Elly2018/v1.0.2
Cross apply preset, model 13 and model 12
2 parents c91d598 + 976a735 commit 0536ca9

6 files changed

Lines changed: 13 additions & 6 deletions

File tree

package/deb_master_amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: go-pro-control-master
2-
Version: 0.1.3
2+
Version: 1.0.1
33
Section: shells
44
Priority: optional
55
Architecture: amd64

package/deb_server_amd64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: go-pro-control-server
2-
Version: 0.1.3
2+
Version: 1.0.1
33
Section: shells
44
Priority: optional
55
Architecture: amd64

package/deb_server_arm64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: go-pro-control-server
2-
Version: 0.1.3
2+
Version: 1.0.1
33
Section: shells
44
Priority: optional
55
Architecture: arm64

src/master/GoProMaster.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,10 @@ void GoProMaster::processMessage(const std::string& server, const std::string& m
694694
std::cerr << "query:get, return value should be array" << std::endl;
695695
return;
696696
}
697+
if(key == "query:get" && data["value"]["data"].size() == 0){
698+
std::cout << "Camera response null state from server: " << server << std::endl;
699+
return;
700+
}
697701
/**
698702
* In case you're confuse here...
699703
* The data is like this
@@ -722,6 +726,9 @@ void GoProMaster::processMessage(const std::string& server, const std::string& m
722726
continue;
723727
}
724728
std::string ip_ref = ip.value()["ip"].get<std::string>();
729+
if(ip_ref.size() == 0){
730+
continue;
731+
}
725732
int32_t found = findCamera(server, ip_ref);
726733
CameraInfo _cam;
727734
if(found == -1){
@@ -899,6 +906,7 @@ void GoProMaster::replaceCameraFromServer(const std::string server, const std::v
899906
}
900907
return false;
901908
});
909+
902910
cameras.erase(it, cameras.end());
903911

904912
// Append part

src/master/windows/inspector/filter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ bool InspectorWindow::conditional_filter_option(const std::shared_ptr<GlobalStat
264264
}
265265
}
266266
else if(aspect_id == 3){ // 8:7
267-
// 30, 60, 24
268-
if(value_id != 8 && value_id != 5 && value_id != 10) return false;
267+
// 30, 24
268+
if(value_id != 8 && value_id != 10) return false;
269269
}
270270
}
271271
}

src/server/main.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,6 @@ void MediaAction(const WebSocketChannelPtr& channel, json j){
383383
}
384384
}
385385

386-
387386
void PreviewAction(const WebSocketChannelPtr& channel, json j){
388387
std::string target = "";
389388
std::string name = "";

0 commit comments

Comments
 (0)