0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-06-26 00:41:33 +00:00

starting with sanguino arduino 1.0 compatibility

This commit is contained in:
Bernhard 2011-12-22 16:11:15 +01:00
parent 2bc160a978
commit 8463e39a4a
3 changed files with 12 additions and 14 deletions

View file

@ -47,13 +47,14 @@ SdFile::SdFile(const char* path, uint8_t oflag) : SdBaseFile(path, oflag) {
int16_t SdFile::write(const void* buf, uint16_t nbyte) {
return SdBaseFile::write(buf, nbyte);
}
#warning F_CPU
//------------------------------------------------------------------------------
/** Write a byte to a file. Required by the Arduino Print class.
* \param[in] b the byte to be written.
* Use writeError to check for errors.
*/
#if ARDUINO >= 100
size_t SdFile::write(uint8_t b)
size_t SdFile::write(uint8_t b)
#else
void SdFile::write(uint8_t b)
#endif