Browse Source

🐛 Fix BTC_SAMPLE_RES sanity check (#22394)

Katelyn Schiesser 2 years ago
parent
commit
86feddb75f
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/inc/SanityCheck.h

+ 1
- 1
Marlin/src/inc/SanityCheck.h View File

623
     static_assert(_test_btc_sample_start != 12.3f, "BTC_SAMPLE_START must be a whole number.");
623
     static_assert(_test_btc_sample_start != 12.3f, "BTC_SAMPLE_START must be a whole number.");
624
   #endif
624
   #endif
625
   #ifdef BTC_SAMPLE_RES
625
   #ifdef BTC_SAMPLE_RES
626
-    constexpr _btc_sample_res = BTC_SAMPLE_RES;
626
+    constexpr auto _btc_sample_res = BTC_SAMPLE_RES;
627
     constexpr decltype(_btc_sample_res) _test_btc_sample_res = 12.3f;
627
     constexpr decltype(_btc_sample_res) _test_btc_sample_res = 12.3f;
628
     static_assert(_test_btc_sample_res != 12.3f, "BTC_SAMPLE_RES must be a whole number.");
628
     static_assert(_test_btc_sample_res != 12.3f, "BTC_SAMPLE_RES must be a whole number.");
629
   #endif
629
   #endif

Loading…
Cancel
Save