mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-04-25 16:41:27 +00:00
Successfully formatted the rev1.c file using qmk format-c command as requested by QMK member in pull request
This commit is contained in:
parent
50be79cf72
commit
d9063a6341
@ -8,29 +8,28 @@
|
|||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
* See the GNU General Public License for more details.
|
* See the GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program.
|
* along with this program.
|
||||||
* If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
|
* If not, see <https://www.gnu.org/licenses/gpl-3.0.html>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "quantum.h"
|
#include "quantum.h"
|
||||||
|
|
||||||
#if defined(DIP_SWITCH_ENABLE)
|
#if defined(DIP_SWITCH_ENABLE)
|
||||||
bool dip_switch_update_kb(uint8_t index, bool active) {
|
bool dip_switch_update_kb(uint8_t index, bool active) {
|
||||||
if(!dip_switch_update_user(index, active))
|
if (!dip_switch_update_user(index, active)) {
|
||||||
{
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
switch (index) {
|
||||||
switch (index) {
|
|
||||||
case 0:
|
case 0:
|
||||||
// Encode Push Button Pressed
|
// Encode Push Button Pressed
|
||||||
if(active) {
|
if (active) {
|
||||||
// Toggle Host Mute
|
// Toggle Host Mute
|
||||||
tap_code(KC_MUTE);
|
tap_code(KC_MUTE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
Loading…
Reference in New Issue
Block a user