Skip to content
This repository was archived by the owner on Jul 25, 2022. It is now read-only.

Commit 2d5c9c6

Browse files
committed
Use macro for PI, as std::acos is not constexpr.
1 parent 7ee8bdf commit 2d5c9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

robot-control-src/board.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <MCP23017.h>
88

99
typedef decltype(millis()) Milliseconds;
10-
constexpr auto pi = std::acos(-1);
10+
constexpr auto pi = M_PI;
1111

1212
namespace board
1313
{

0 commit comments

Comments
 (0)