From 09295f210f9468ce52a3bc9c2bb77bcc88f3c622 Mon Sep 17 00:00:00 2001 From: Jacob Alexander Date: Thu, 11 Sep 2014 11:01:11 -0700 Subject: [PATCH] Changing array type to support different uC architectures. - nat_ptr_t is defined in kll.h --- backends/kiibohd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/kiibohd.py b/backends/kiibohd.py index 9eb2158..64cfb6c 100644 --- a/backends/kiibohd.py +++ b/backends/kiibohd.py @@ -159,7 +159,7 @@ class Backend: ## Default Layer and Default Layer Scan Map ## self.fill_dict['DefaultLayerTriggerList'] = "" - self.fill_dict['DefaultLayerScanMap'] = "const unsigned int *default_scanMap[] = {\n" + self.fill_dict['DefaultLayerScanMap'] = "const nat_ptr_t *default_scanMap[] = {\n" # Iterate over triggerList and generate a C trigger array for the default map and default map array for triggerList in range( 0, len( macros.triggerList[ 0 ] ) ): @@ -187,7 +187,7 @@ class Backend: for layer in range( 1, len( macros.triggerList ) ): # Prepare each layer self.fill_dict['PartialLayerScanMaps'] += "// Partial Layer {0}\n".format( layer ) - self.fill_dict['PartialLayerScanMaps'] += "const unsigned int *layer{0}_scanMap[] = {{\n".format( layer ) + self.fill_dict['PartialLayerScanMaps'] += "const nat_ptr_t *layer{0}_scanMap[] = {{\n".format( layer ) self.fill_dict['PartialLayerTriggerLists'] += "// Partial Layer {0}\n".format( layer ) # Iterate over triggerList and generate a C trigger array for the layer