adm34 / arduino

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

Change SD.open() to use mode constants instead of booleans. #409

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What change would like to see?

Instead of SD.open("foo.txt", true) and SD.open("foo.txt", false), use 
something like SD.open("foo.txt", WRITE) and SD.open("foo.txt", APPEND).

Why?

It's more readable.

Original issue reported on code.google.com by dmel...@gmail.com on 20 Nov 2010 at 8:40

GoogleCodeExporter commented 9 years ago
https://github.com/arduino/Arduino/commit/ff89afb6062b66051b9f8db1a35bf325f3ab2e
7f

Original comment by dmel...@gmail.com on 29 Nov 2010 at 4:47