Browse Source

[Docs] Fix typo in dip switch example (#13688)

Dasky 5 years ago
parent
commit
d972919204
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/feature_dip_switch.md

+ 1 - 1
docs/feature_dip_switch.md

@@ -24,7 +24,7 @@ The callback functions can be inserted into your `<keyboard>.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;
 }
 ```