Closed ZINKTiti closed 5 years ago
what exactly does not work ?
Hello in your code you have a miss alignement between the line
Neither AVR nor ESP8266 has a compiler error message. If I load the code on an AVR or ESP8266 everything works fine.
Can you tell me exactly in which line the problem exists? Can you give me the error message?
Hello
I think this will not work
// EEprom parameter addresses enum { P_NUMBER_LOADCELLS = 1, P_DISTANCE_X1 = 2, P_DISTANCE_X2 = P_DISTANCE_X1 + sizeof(float), P_DISTANCE_X3 = P_DISTANCE_X2 + sizeof(float), P_LOADCELL1_CALIBRATION_FACTOR = P_DISTANCE_X3 + sizeof(float), P_LOADCELL2_CALIBRATION_FACTOR = P_LOADCELL1_CALIBRATION_FACTOR + sizeof(float), P_LOADCELL3_CALIBRATION_FACTOR = P_LOADCELL2_CALIBRATION_FACTOR + sizeof(float), P_ENABLE_BATVOLT = P_LOADCELL3_CALIBRATION_FACTOR + sizeof(float), P_REF_WEIGHT = P_ENABLE_BATVOLT + sizeof(float), P_REF_CG = P_REF_WEIGHT + sizeof(float), P_RESISTOR_R1 = P_REF_CG + sizeof(float), P_RESISTOR_R2 = P_RESISTOR_R1 + sizeof(float),
if defined(AVR)
EEPROM_SIZE = P_RESISTOR_R2 + sizeof(float)
elif defined(ESP8266)
P_SSID_STA = P_RESISTOR_R2 + sizeof(float), P_PASSWORD_STA = P_SSID_STA + MAX_SSID_PW_LENGHT + 1, P_SSID_AP = P_PASSWORD_STA + MAX_SSID_PW_LENGHT + 1, P_PASSWORD_AP = P_SSID_AP + MAX_SSID_PW_LENGHT + 1, P_MODELNAME = P_PASSWORD_AP + MAX_SSID_PW_LENGHT + 1, EEPROM_SIZE = P_MODELNAME + MAX_MODELNAME_LENGHT + 1
endif