diff --git a/speeduino/comms.ino b/speeduino/comms.ino index 4e8237d2..c5dc7ae1 100644 --- a/speeduino/comms.ino +++ b/speeduino/comms.ino @@ -1215,9 +1215,9 @@ void sendPage(bool useChar) { //To Display Values from Config Page 10 Serial.println((const __FlashStringHelper *)&pageTitles[103]);//special typecasting to enable suroutine that the F macro uses - for (pnt_configPage = &configPage9; pnt_configPage < ((byte *)pnt_configPage + 128); pnt_configPage = (byte *)pnt_configPage + 1) + for (pnt_configPage = &configPage9; pnt_configPage < ((byte *)pnt_configPage + npage_size[canbusPage]); pnt_configPage = (byte *)pnt_configPage + 1) { - Serial.println(*((byte *)pnt_configPage));// Displaying byte values of config page 3 up to but not including the first array + Serial.println(*((byte *)pnt_configPage));// Displaying byte values of config page 9 up to but not including the first array } sendComplete = true; }