From d972919204a5f1cb96d4e16c765d7028a423888a Mon Sep 17 00:00:00 2001 From: Dasky <32983009+daskygit@users.noreply.github.com> Date: Sat, 24 Jul 2021 18:44:31 +0100 Subject: [Docs] Fix typo in dip switch example (#13688) --- docs/feature_dip_switch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/feature_dip_switch.md b/docs/feature_dip_switch.md index 5e8c19bfa7..43a6a3faf7 100644 --- a/docs/feature_dip_switch.md +++ b/docs/feature_dip_switch.md @@ -24,7 +24,7 @@ The callback functions can be inserted into your `.c`: ```c bool dip_switch_update_kb(uint8_t index, bool active) { - if !(dip_switch_update_user(index, active)) { return false; } + if (!dip_switch_update_user(index, active)) { return false; } return true; } ``` -- cgit v1.2.3