1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-16 00:43:00 +03:00

remove some warnings

This commit is contained in:
Markus Sattler
2015-04-06 19:54:01 +02:00
parent f165a0afcd
commit 0bd2ea1948
5 changed files with 6 additions and 5 deletions

View File

@ -34,12 +34,12 @@ int atoi(const char* s) {
}
long atol(const char* s) {
const char * tmp;
char * tmp;
return strtol(s, &tmp, 10);
}
double atof(const char* s) {
const char * tmp;
char * tmp;
return strtod(s, &tmp);
}
@ -148,7 +148,6 @@ char* ultoa(unsigned long value, char* result, int base) {
}
char * dtostrf(double number, signed char width, unsigned char prec, char *s) {
size_t n = 0;
if(isnan(number)) {
strcpy(s, "nan");

View File

@ -202,7 +202,8 @@ uint8_t twi_writeTo(uint8_t addr, uint8_t* data, uint8_t size, uint8_t wait, uin
}
uint8_t twi_transmit(const uint8_t* data, uint8_t length) {
//TODO implement twi_transmit
return 0;
}
void twi_attachSlaveRxEvent(void (*)(uint8_t*, int)) {