From 1816f3a971239d50daf3e01af522667d325cad68 Mon Sep 17 00:00:00 2001 From: Kevin Cedrone Date: Mon, 10 Jun 2019 09:54:16 -0400 Subject: [PATCH 1/3] Update firmware_data[] type to solve Arduino issue --- Arduino Example Sketches/ADNS9800test-serial.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino Example Sketches/ADNS9800test-serial.ino b/Arduino Example Sketches/ADNS9800test-serial.ino index bbbe547..8bcba20 100644 --- a/Arduino Example Sketches/ADNS9800test-serial.ino +++ b/Arduino Example Sketches/ADNS9800test-serial.ino @@ -57,7 +57,7 @@ volatile byte movementflag=0; const int ncs = 10; extern const unsigned short firmware_length; -extern const unsigned char firmware_data[]; +extern const char firmware_data[]; void setup() { Serial.begin(9600); From f0762f52943860d1ff95a7416277d9906e8b4824 Mon Sep 17 00:00:00 2001 From: Kevin Cedrone Date: Mon, 10 Jun 2019 09:59:05 -0400 Subject: [PATCH 2/3] Update firmware_data[] type Solve issue with Arduino compiling --- Arduino Example Sketches/ADNS9800_SROM_A4.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino Example Sketches/ADNS9800_SROM_A4.ino b/Arduino Example Sketches/ADNS9800_SROM_A4.ino index ba96ecc..3c0cffa 100644 --- a/Arduino Example Sketches/ADNS9800_SROM_A4.ino +++ b/Arduino Example Sketches/ADNS9800_SROM_A4.ino @@ -8,7 +8,7 @@ const unsigned short firmware_length = 3070; -prog_uchar firmware_data[] PROGMEM = { +const char firmware_data[] PROGMEM = { 0x03, 0xa4, 0x6e, 0x16, 0x6d, 0x89, 0x3e, 0xfe, 0x5f, 0x1c, 0xb8, 0xf2, 0x47, 0x0c, 0x7b, 0x74, 0x6a, 0x56, 0x0f, 0x7d, 0x76, 0x71, 0x4b, 0x0c, 0x97, 0xb6, 0xcf, 0xfd, 0x78, 0x72, 0x66, 0x2f, 0xbd, 0xf8, 0x53, 0x24, 0xab, 0xd4, 0x2c, 0xb0, 0xe4, 0x32, 0xf1, 0x6a, 0x56, From 28149f09163b1733ef4945e3f0086f048fb35cfe Mon Sep 17 00:00:00 2001 From: Kevin Cedrone Date: Mon, 10 Jun 2019 09:59:35 -0400 Subject: [PATCH 3/3] Update firmware_data[] type To solve Arduino compiling issue --- Arduino Example Sketches/ADNS9800testPolling.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino Example Sketches/ADNS9800testPolling.ino b/Arduino Example Sketches/ADNS9800testPolling.ino index 6335d53..43117a7 100644 --- a/Arduino Example Sketches/ADNS9800testPolling.ino +++ b/Arduino Example Sketches/ADNS9800testPolling.ino @@ -58,7 +58,7 @@ volatile byte movementflag=0; const int ncs = 10; extern const unsigned short firmware_length; -extern const unsigned char firmware_data[]; +extern const char firmware_data[]; void setup() { Serial.begin(9600);