Skip to content

Commit

Permalink
Remove casts to double
Browse files Browse the repository at this point in the history
  • Loading branch information
mdurrani808 authored and mcm001 committed Sep 8, 2023
1 parent f601275 commit c8ba0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions photon-lib/src/main/native/cpp/photonlib/PhotonCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void PhotonCamera::TakeOutputSnapshot() {
bool PhotonCamera::GetDriverMode() const { return driverModeSubscriber.Get(); }

void PhotonCamera::SetPipelineIndex(int index) {
pipelineIndexPub.Set(static_cast<double>(index));
pipelineIndexPub.Set(index);
}

int PhotonCamera::GetPipelineIndex() const {
Expand All @@ -137,7 +137,7 @@ std::optional<cv::Mat> PhotonCamera::GetCameraMatrix() {
}

void PhotonCamera::SetLEDMode(LEDMode mode) {
ledModePub.Set(static_cast<double>(static_cast<int>(mode)));
ledModePub.Set(static_cast<int>(mode));
}

const std::string_view PhotonCamera::GetCameraName() const {
Expand Down

0 comments on commit c8ba0e2

Please sign in to comment.