From d9063a6341d0b6f5624ab6adb47029e3d1a77d63 Mon Sep 17 00:00:00 2001 From: atechofficials Date: Tue, 25 Jun 2024 05:27:51 +0530 Subject: [PATCH] Successfully formatted the rev1.c file using qmk format-c command as requested by QMK member in pull request --- keyboards/protokeeb/rev1/rev1.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/keyboards/protokeeb/rev1/rev1.c b/keyboards/protokeeb/rev1/rev1.c index a746b58ba33..e087b0a0a56 100644 --- a/keyboards/protokeeb/rev1/rev1.c +++ b/keyboards/protokeeb/rev1/rev1.c @@ -8,29 +8,28 @@ * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See the GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License - * along with this program. + * along with this program. * If not, see . */ #include "quantum.h" #if defined(DIP_SWITCH_ENABLE) -bool dip_switch_update_kb(uint8_t index, bool active) { - if(!dip_switch_update_user(index, active)) - { - return false; - } - switch (index) { +bool dip_switch_update_kb(uint8_t index, bool active) { + if (!dip_switch_update_user(index, active)) { + return false; + } + switch (index) { case 0: - // Encode Push Button Pressed - if(active) { - // Toggle Host Mute - tap_code(KC_MUTE); - } + // Encode Push Button Pressed + if (active) { + // Toggle Host Mute + tap_code(KC_MUTE); + } break; - } - return true; + } + return true; } #endif \ No newline at end of file