cherts/esp8266-devkit

Values wrong

scargill opened this issue · 2 comments

Hi

I THINK you have a line wrong in user_c -
I believe

console_printf("Pressure: %d.%d mbar\r\n", (int)(pressure), (int)(pressure%100));

should be

console_printf("Pressure: %d.%d mbar\r\n", (int)(pressure/100), (int)(pressure%100));

Also the Altitude output - something wrong there as I am near sea level and with the pressure and temperature showing correctly - I get a very strange value for altitude - I've no idea what it is supposed to mean.

What an example of this error?

Fixed, see commit 4ea529c