]> git.donarmstrong.com Git - qmk_firmware.git/blobdiff - quantum/process_keycode/process_printer_bb.c
convert to unix line-endings [skip ci]
[qmk_firmware.git] / quantum / process_keycode / process_printer_bb.c
index 1924d037745bc6a2e6ce83cff4faaffd80757147..3a00f169d8b4d656b0f24ce626cdfce9ea047e4e 100644 (file)
@@ -1,3 +1,19 @@
+/* Copyright 2016 Jack Humbert
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * 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.  If not, see <http://www.gnu.org/licenses/>.
+ */
+
 #include "process_printer.h"
 #include "action_util.h"
 
@@ -30,7 +46,7 @@ void serial_output(void) {
 }
 
 
-void enabled_printing() {
+void enable_printing() {
        printing_enabled = true;
        serial_output();
        serial_high();
@@ -66,7 +82,7 @@ void print_string(char c[]) {
 
 bool process_printer(uint16_t keycode, keyrecord_t *record) {
        if (keycode == PRINT_ON) {
-               enabled_printing();
+               enable_printing();
                return false;
        }
        if (keycode == PRINT_OFF) {
@@ -257,4 +273,4 @@ bool process_printer(uint16_t keycode, keyrecord_t *record) {
        }
        return true;
 
-}
\ No newline at end of file
+}