Skip to content

Commit

Permalink
changed get_size to int32_t in c++
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreBrendan committed Oct 6, 2020
1 parent af6768b commit 803bf93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/pros/distance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Distance {
* \return The size value or PROS_ERR if the operation failed, setting
* errno.
*/
double get_object_size();
std::int32_t get_object_size();

/**
* Get the object velocity in m/s
Expand Down
2 changes: 1 addition & 1 deletion src/devices/vdml_distance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ std::int32_t Distance::get_confidence() {
return pros::c::distance_get_confidence(_port);
}

double Distance::get_object_size() {
std::int32_t Distance::get_object_size() {
return pros::c::distance_get_object_size(_port);
}

Expand Down

0 comments on commit 803bf93

Please sign in to comment.