From 8a32d825e969aa19d7263bb3a6818a765119e11b Mon Sep 17 00:00:00 2001 From: Paul Carpenter Date: Fri, 10 Apr 2020 16:55:13 +0100 Subject: [PATCH] Revert mistake in V1.0.5 for _KeyMaps --- README.md | 6 +++--- library.properties | 2 +- src/PS2KeyData.h | 7 ++----- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 95f1020..a5d814c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ ### Arduino PS2 keyboard International Keyboard mapping from PS2KeyAdvanced and return as UTF-8 ## This library requires PS2KeyAdvanced as well to work -**V1.0.5** March 2020 Add Italian and Spanish keyboard layouts +**V1.0.6** April 2020 Correct _KeyMaps definition error in V1.0.5 + +V1.0.5 March 2020 Add Italian and Spanish keyboard layouts V1.0.4 January 2020 Work better with new library manager spec and better additional platform possibilities @@ -57,8 +59,6 @@ Current Country mappings included (other contributions welcomed) * UK/GB * DE - German * FR - French - * IT - Italian - * ES - Spanish You can select which map to use from your programme. diff --git a/library.properties b/library.properties index ab793cd..960ad2f 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=PS2KeyMap -version=1.0.5 +version=1.0.6 author=Paul Carpenter maintainer=Paul Carpenter sentence=PS2 keyboard codes from PS2KeyAdvanced to UTF-8 for any Latin language keyboard. diff --git a/src/PS2KeyData.h b/src/PS2KeyData.h index 85fc140..998b3f9 100644 --- a/src/PS2KeyData.h +++ b/src/PS2KeyData.h @@ -1,4 +1,4 @@ -/* Version V1.0.5 +/* Version V1.0.6 PS2KeyMap.h - PS2KeyAdvanced library Copyright (c) 2007 Free Software Foundation. All right reserved. Written by Paul Carpenter, PC Services @@ -6,6 +6,7 @@ Updated January 2016 - Paul Carpenter - add tested on Due and tidy ups for V1.5 Library Management January 2020 - Paul Carpenter - extend library properties for V2.2 of Arduino Library Management March 2020 - Paul Carpenter - add Spanish and Italian Mappings + April 2020 - Paul Carpenter - Correct _KeyMaps definition error in last version PRIVATE to library data and key mapping tables @@ -383,11 +384,7 @@ typedef struct { // Actual map structure array ( 2 entries for GB and UK for same map // Because many people don't know ISO code for UK is GB ) -#if defined(PS2_REQUIRES_PROGMEM) -const PS2Advmap PROGMEM _KeyMaps[ ] = { -#else const PS2Advmap _KeyMaps[ ] = { -#endif { "US", sizeof( _US_ASCII ) / ( 2 * sizeof( uint16_t ) ), (uint16_t *)_US_ASCII }, #ifdef FRENCH { "FR", sizeof( _FRmap ) / ( 2 * sizeof( uint16_t ) ), (uint16_t *)_FRmap },