Skip to content

Commit

Permalink
Trunk Format.
Browse files Browse the repository at this point in the history
  • Loading branch information
fifieldt committed Nov 27, 2024
1 parent 3e86999 commit d3a26b2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/gps/GPS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
#endif

// Not all platforms have std::size().
template <typename T, std::size_t N>
std::size_t array_count(const T(&) [N]) { return N; }

template <typename T, std::size_t N> std::size_t array_count(const T (&)[N])
{
return N;
}

#if defined(NRF52840_XXAA) || defined(NRF52833_XXAA) || defined(ARCH_ESP32) || defined(ARCH_PORTDUINO)
HardwareSerial *GPS::_serial_gps = &Serial1;
Expand Down Expand Up @@ -1749,4 +1750,4 @@ void GPS::toggleGpsMode()
enable();
}
}
#endif // Exclude GPS
#endif // Exclude GPS

0 comments on commit d3a26b2

Please sign in to comment.