* AUX out: cleanup warning

(cherry picked from commit f52b12c5d77ed537060eca4ba4a48392ed8e2418)

* HardFault handler: fix unused warning

(cherry picked from commit 6baa0fc1207142990b1501354a2b88ea322f1c4f)

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2023-02-15 13:25:28 -05:00 committed by GitHub
parent ab84b694b6
commit bb86ba1e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,6 @@ void AuxOutThread(void*)
{
for (int ch = 0; ch < AFR_CHANNELS; ch++)
{
auto cfg = GetConfiguration();
float input = AuxGetInputSignal(cfg->auxOutputSource[ch]);
float voltage = interpolate2d(input, cfg->auxOutBins[ch], cfg->auxOutValues[ch]);

View File

@ -111,6 +111,7 @@ extern "C" void HardFault_Handler_C(void* sp) {
bool isFaultOnUnstacking = ((SCB->CFSR >> SCB_CFSR_BUSFAULTSR_Pos) & (1 << 3) ? true : false);
bool isFaultOnStacking = ((SCB->CFSR >> SCB_CFSR_BUSFAULTSR_Pos) & (1 << 4) ? true : false);
bool isFaultAddressValid = ((SCB->CFSR >> SCB_CFSR_BUSFAULTSR_Pos) & (1 << 7) ? true : false);
(void)faultAddress;
(void)isFaultPrecise;
(void)isFaultImprecise;
(void)isFaultOnUnstacking;