🐛 Fix BTC_SAMPLE_RES sanity check (#22394)

This commit is contained in:
Katelyn Schiesser 2021-07-20 13:13:25 -07:00 committed by GitHub
parent e4ac55089e
commit 86feddb75f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -623,7 +623,7 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
static_assert(_test_btc_sample_start != 12.3f, "BTC_SAMPLE_START must be a whole number.");
#endif
#ifdef BTC_SAMPLE_RES
constexpr _btc_sample_res = BTC_SAMPLE_RES;
constexpr auto _btc_sample_res = BTC_SAMPLE_RES;
constexpr decltype(_btc_sample_res) _test_btc_sample_res = 12.3f;
static_assert(_test_btc_sample_res != 12.3f, "BTC_SAMPLE_RES must be a whole number.");
#endif