ble nano hid over gatt

Dependencies:   BLE_API mbed-dev nRF51822

Revision:
48:d6938de02f62
Parent:
47:5bf2ae8cc710
Child:
86:e0fab77e669d
--- a/keymap.h	Mon Aug 29 12:38:32 2016 +0000
+++ b/keymap.h	Mon Aug 29 14:09:09 2016 +0000
@@ -23,7 +23,7 @@
 	Keymap() : layer(0) {
 	}
 
-	static void switch_layer(Keymap& keymap, bool pressed) {
+	static void switch_layer(Keymap& keymap, const bool pressed) {
 		if (pressed) {
 			keymap.layer++;
 			if (keymap.layer > LAYERS) {
@@ -38,7 +38,7 @@
 		DEBUG_PRINTF_KEYEVENT("LAYER->%d\r\n", keymap.layer);
 	}
 
-	void execute(int row, int col, bool pressed) {
+	void execute(const int row, const int col, const bool pressed) {
 		for (int i = 0; ; i++) {
 			const keyfunc_t& keyfunc = KEYMAP_FUNCTIONS[i];
 			if (keyfunc.row == -1) break;