Skip to content

Commit

Permalink
Redirect connectivity check to http for consistency
Browse files Browse the repository at this point in the history
Change-Id: Iafb5aa81a89639478105a7e8bf17c7f2e9413d39
  • Loading branch information
ev-mp committed Oct 29, 2018
1 parent a77c9ee commit 4d82462
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ubuntu-xenial-hwe/

# CMake
build/
connectivity_check

# XCode
.DS_Store
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ option(BUILD_WITH_TM2 "Build with support for Intel TM2 tracking device" ON)
# Checking Internet connection, as TM2 needs to download the FW from amazon cloud
if(BUILD_WITH_TM2)
message(STATUS "Checking internet connection...")
file(DOWNLOAD "https://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/connectivity_check" "${CMAKE_CURRENT_SOURCE_DIR}/connectivity_check" SHOW_PROGRESS TIMEOUT 5 STATUS status)
file(DOWNLOAD "http://realsense-hw-public.s3-eu-west-1.amazonaws.com/Releases/connectivity_check" "${CMAKE_CURRENT_SOURCE_DIR}/connectivity_check" SHOW_PROGRESS TIMEOUT 5 STATUS status)
list (FIND status "\"No error\"" _index)
if (${_index} EQUAL -1)
message(STATUS "Failed to identify Internet connection, disabling BUILD_WITH_TM2")
Expand Down

0 comments on commit 4d82462

Please sign in to comment.