# HG changeset patch # User Daniel O'Connor # Date 1265854496 -37800 # Node ID b22a888eb97520fe8e7195cf5e4c40f80c87b5fe # Parent f561c7f130a069bdc1c6517bf0af29b9b7cbe2f7 Remove page1_*_pressure - it appears to be old code and is unused. diff -r f561c7f130a0 -r b22a888eb975 util.c --- a/util.c Thu Feb 11 11:47:11 2010 +1030 +++ b/util.c Thu Feb 11 12:44:56 2010 +1030 @@ -23,11 +23,11 @@ if (lines == 0) printf ("\n" - " Page sv IT IH IDP OT OH ODP hPa SL abs rel Wind Gust Dir Rain CR PR \n"); + " Page sv IT IH IDP OT OH ODP hPa SL Wind Gust Dir Rain CR PR\n"); strftime (timestamp, STAMPSIZE, "%F %T", localtime (&readings->timestamp)); /* format time and date */ - printf ("%17s %5x %3d %5.1f %3d %5.1f %5.1f %3d %5.1f %6.1f %6.1f %6.1f %6.1f %5.1f %5.1f %3s %4.1f %4.1f %4.1f\n", + printf ("%19s %4x %2d %4.1f %3d %4.1f %4.1f %3d %5.1f %6.1f %6.1f %5.1f %5.1f %3s %4.1f %4.1f %4.1f\n", timestamp, /* current time */ readings->page, /* machine page number */ readings->last_save_mins, /* last save minutes (?) */ @@ -39,8 +39,6 @@ readings->outside_dewpoint, /* outside dewpoint */ readings->pressure, /* absolute pressure, hPa */ readings->pressure_sea_level, /* sea level pressure, hPa */ - readings->page1_abs_pressure, /* absolute pressure, hPa */ - readings->page1_rel_pressure, /* relative pressure, hPa */ readings->wind_speed, /* wind speed in km/h */ readings->wind_gust, /* wind gust speed in km/h */ readings->wind_direction_text, /* wind direction */ diff -r f561c7f130a0 -r b22a888eb975 wh1080.c --- a/wh1080.c Thu Feb 11 11:47:11 2010 +1030 +++ b/wh1080.c Thu Feb 11 12:44:56 2010 +1030 @@ -427,9 +427,6 @@ set_dewpoints (readings); set_sea_level_pressure (readings); - - /* Stuff from page 1 */ - readings->page1_abs_pressure = ((float) page1.abs_pressure) / 10; /* absolute pressure, hPa */ } /* diff -r f561c7f130a0 -r b22a888eb975 wh1080.h --- a/wh1080.h Thu Feb 11 11:47:11 2010 +1030 +++ b/wh1080.h Thu Feb 11 12:44:56 2010 +1030 @@ -133,8 +133,6 @@ float outside_dewpoint; /* dewpoint temperature outside */ float pressure; /* absolute pressure, hPa */ float pressure_sea_level; /* relative sea level pressure, hPa */ - float page1_abs_pressure; /* absolute pressure, hPa, from page 1 */ - float page1_rel_pressure; /* relative pressure, hPa, from page 1 */ float wind_speed; /* wind speed in km/h */ float wind_gust; /* wind gust speed in km/h */ float wind_direction; /* wind direction, as angle */