Index: /webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c =================================================================== --- /webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c (revision 47) +++ /webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c (revision 48) @@ -242,9 +242,9 @@ //strcat( ( char * ) uip_appdata, ( char * ) "\r\n" ); - sprintf( cCountBuf, "
TSTmeter %d %d %d %d %d %d %d %d\r\n",
+ sprintf( cCountBuf, "
TSTmeter %u %u %u %u %u %u %u %u\r\n",
meterItems[METER_INDEX_TST].meterEnabled,
- (portLONG)(meterItems[METER_INDEX_TST].timeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_TST].timeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_TST].timeLastTick & 0xffffffff),
- (portLONG)(meterItems[METER_INDEX_TST].timeBeforeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_TST].timeBeforeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_TST].timeBeforeLastTick & 0xffffffff),
meterItems[METER_INDEX_TST].valueLastTick,
@@ -257,9 +257,9 @@
- sprintf( cCountBuf, "GASmeter %d %d %d %d %d %d %d %d\r\n",
+ sprintf( cCountBuf, "GASmeter %u %u %u %u %u %u %u %u\r\n",
meterItems[METER_INDEX_GAS].meterEnabled,
- (portLONG)(meterItems[METER_INDEX_GAS].timeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_GAS].timeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_GAS].timeLastTick & 0xffffffff),
- (portLONG)(meterItems[METER_INDEX_GAS].timeBeforeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_GAS].timeBeforeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_GAS].timeBeforeLastTick & 0xffffffff),
meterItems[METER_INDEX_GAS].valueLastTick,
@@ -272,9 +272,9 @@
- sprintf( cCountBuf, "EL1meter %d %d %d %d %d %d %d %d\r\n",
+ sprintf( cCountBuf, "EL1meter %u %u %u %u %u %u %u %u\r\n",
meterItems[METER_INDEX_EL1].meterEnabled,
- (portLONG)(meterItems[METER_INDEX_EL1].timeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_EL1].timeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_EL1].timeLastTick & 0xffffffff),
- (portLONG)(meterItems[METER_INDEX_EL1].timeBeforeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_EL1].timeBeforeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_EL1].timeBeforeLastTick & 0xffffffff),
meterItems[METER_INDEX_EL1].valueLastTick,
@@ -287,9 +287,9 @@
- sprintf( cCountBuf, "EL2meter %d %d %d %d %d %d %d %d\r\n",
+ sprintf( cCountBuf, "EL2meter %u %u %u %u %u %u %u %u\r\n",
meterItems[METER_INDEX_EL2].meterEnabled,
- (portLONG)(meterItems[METER_INDEX_EL2].timeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_EL2].timeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_EL2].timeLastTick & 0xffffffff),
- (portLONG)(meterItems[METER_INDEX_EL2].timeBeforeLastTick << 32),
+ (portLONG)(meterItems[METER_INDEX_EL2].timeBeforeLastTick >> 32),
(portLONG)(meterItems[METER_INDEX_EL2].timeBeforeLastTick & 0xffffffff),
meterItems[METER_INDEX_EL2].valueLastTick,