Abdellazizhammami / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

PgmPrint function in SD library not working correctly in Arduino 1.0 #759

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use PgmPrint function from SD Library to print string.

What is the expected output? What do you see instead?
String will print as series of digits rather than actual string

What version of the Arduino software are you using? On what operating
system?  Which Arduino board are you using?
Arduino 1.0 on Windows 7.  Arduino Mega

Please provide any additional information below.
See forum thread http://arduino.cc/forum/index.php/topic,84200.0.html for 
description of actual bug and suggested fix.

Original issue reported on code.google.com by gt...@verizon.net on 22 Dec 2011 at 5:47

GoogleCodeExporter commented 9 years ago
I verified that changing the SerialPrint_P function in SdFatUtil.h to "write" 
instead of "print" fixed the issue on the Serial print messages.

I found a similar issue with the SDWebServer Sketch example. The ListFiles() 
sub is using client.print() instead of client.write() to print characters to 
the client.  This fixed that issue also.  I assume that there must have been 
some change in the client.print and client.write from pre Arduino 1.0 libraries.

Original comment by griggdav...@gmail.com on 19 Jan 2012 at 7:23

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/3dfc2c631110d912656d3bd02c7a07d16adcb6
d3

Original comment by dmel...@gmail.com on 3 Feb 2012 at 11:33