diff --git a/.clang-tidy b/.clang-tidy index 224ca265cc..3f78ec7514 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -188,7 +188,7 @@ Checks: 'clang-diagnostic-*,clang-analyzer-*,-*, readability-redundant-string-cstr, readability-redundant-string-init, ## TODO: fix code and enable # readability-simplify-boolean-expr, - #readability-static-definition-in-anonymous-namespace, + readability-static-definition-in-anonymous-namespace, readability-uniqueptr-delete-release, ' WarningsAsErrors: '*' diff --git a/src/drivers/pwm_out_sim/pwm_out_sim.cpp b/src/drivers/pwm_out_sim/pwm_out_sim.cpp index f8f2aee1b4..507fa165c2 100644 --- a/src/drivers/pwm_out_sim/pwm_out_sim.cpp +++ b/src/drivers/pwm_out_sim/pwm_out_sim.cpp @@ -862,7 +862,7 @@ enum PortMode { PORT2_16PWM, }; -static PortMode g_port_mode = PORT_MODE_UNDEFINED; +PortMode g_port_mode = PORT_MODE_UNDEFINED; int hil_new_mode(PortMode new_mode)