Compatibility with Arduino 1.6.4. with ESP board add-in commit g545ffde

This commit is contained in:
esp8266nu
2015-05-21 13:58:10 +00:00
parent 2054912cce
commit 4a063c0d3f
4 changed files with 5 additions and 19 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ void pulseinit(byte Par1)
boolean analog(byte Par1)
{
boolean success = false;
int value = analogRead(0);
int value = analogRead(A0);
UserVar[Par1 - 1] = (float)value;
Serial.print("ADC : Analog value: ");
Serial.println(value);
+2 -3
View File
@@ -51,7 +51,7 @@
#define ESP_PROJECT_PID 2015050101L
#define VERSION 1
#define BUILD 4
#define BUILD 5
#define UDP_LISTEN_PORT 65500
#define REBOOT_ON_MAX_CONNECTION_FAILURES 30
@@ -138,8 +138,7 @@ void setup()
if (Settings.Pin_i2c_sda != -1)
{
Serial.println("INIT : I2C");
Wire.pins(Settings.Pin_i2c_sda, Settings.Pin_i2c_scl);
Wire.begin();
Wire.begin(Settings.Pin_i2c_sda, Settings.Pin_i2c_scl);
}
if (Settings.Pin_wired_in_1 != -1)
-15
View File
@@ -1,18 +1,3 @@
//********************************************************************************
// workaround for strcasecmp, issue with lib of header files.??????
//********************************************************************************
int strcasecmp(const char * str1, const char * str2) {
int d = 0;
while (1) {
int c1 = tolower(*str1++);
int c2 = tolower(*str2++);
if (((d = c1 - c2) != 0) || (c2 == '\0')) {
break;
}
}
return d;
}
//********************************************************************************
// Serial Interface to configure and save settings to eeprom
//********************************************************************************
+2
View File
@@ -29,3 +29,5 @@
// Delayed reboot on empty IP adress (in case of DHCP issue)
// Delayed reboot after 30 connection failures
// R004 18-05-2015
// Some fixes to be compabtible with Arduino 1.6.4 using ESP board addon 1.6.4.-628-g545ffde