@@ -79,7 +79,7 @@ vscp_readLevel1Register(CVscpClient &client,
79
79
int rv = VSCP_ERROR_ERROR;
80
80
vscpEventEx ex;
81
81
82
- CVscpClient::connType conntype = client.getType ();
82
+ // CVscpClient::connType conntype = client.getType();
83
83
uint8_t nickname = guidNode.getNickname ();
84
84
uint8_t ifoffset = guidInterface.isNULL () ? 0 : 16 ;
85
85
@@ -160,7 +160,7 @@ vscp_writeLevel1Register(CVscpClient &client,
160
160
{
161
161
int rv = VSCP_ERROR_ERROR;
162
162
vscpEventEx ex;
163
- CVscpClient::connType conntype = client.getType ();
163
+ // CVscpClient::connType conntype = client.getType();
164
164
uint8_t nickname = guidNode.getNickname ();
165
165
uint8_t ifoffset = guidInterface.isNULL () ? 0 : 16 ;
166
166
@@ -247,7 +247,7 @@ vscp_readLevel1RegisterBlock(CVscpClient &client,
247
247
int rv = VSCP_ERROR_ERROR;
248
248
uint8_t rcvcnt = 0 ; // Number of registers read
249
249
vscpEventEx ex;
250
- CVscpClient::connType conntype = client.getType ();
250
+ // CVscpClient::connType conntype = client.getType();
251
251
uint8_t nickname = guidNode.getNickname ();
252
252
uint8_t ifoffset = guidInterface.isNULL () ? 0 : 16 ;
253
253
@@ -374,13 +374,13 @@ vscp_writeLevel1RegisterBlock(CVscpClient &client,
374
374
uint32_t timeout)
375
375
{
376
376
int rv = VSCP_ERROR_SUCCESS;
377
- CVscpClient::connType conntype = client.getType ();
377
+ // CVscpClient::connType conntype = client.getType();
378
378
uint8_t nickname = guidNode.getNickname ();
379
379
uint8_t ifoffset = guidInterface.isNULL () ? 0 : 16 ;
380
380
int reg = -99 ;
381
381
int count = 0 ;
382
382
vscpEventEx ex;
383
- uint8_t offset_data = 0 ;
383
+ // uint8_t offset_data = 0;
384
384
std::map<uint8_t , uint8_t > startmap;
385
385
386
386
// The startregs map contains reg, count for each sequence start
@@ -439,7 +439,7 @@ vscp_writeLevel1RegisterBlock(CVscpClient &client,
439
439
}
440
440
441
441
uint32_t startTime = vscp_getMsTimeStamp ();
442
- uint32_t callbackTime = vscp_getMsTimeStamp ();
442
+ // uint32_t callbackTime = vscp_getMsTimeStamp();
443
443
444
444
// Wait for reponse
445
445
@@ -598,7 +598,7 @@ vscp_scanSlowForDevices(CVscpClient &client,
598
598
uint8_t offset = guidIf.isNULL () ? 0 : 16 ;
599
599
int rv = VSCP_ERROR_SUCCESS;
600
600
vscpEventEx ex;
601
- CVscpClient::connType conntype = client.getType ();
601
+ // CVscpClient::connType conntype = client.getType();
602
602
603
603
memset (&ex, 0 , sizeof (vscpEventEx));
604
604
ex.vscp_class = VSCP_CLASS1_PROTOCOL + (guidIf.isNULL () ? 0 : 512 );
@@ -1035,7 +1035,7 @@ vscp_getDeviceInfoHtml(CMDF &mdf, CStandardRegisters &stdregs)
1035
1035
1036
1036
html += " <br><b>Pictures</b><ul>" ;
1037
1037
1038
- for (int i = 0 ; i < mdf.getPictureCount (); i++) {
1038
+ for (size_t i = 0 ; i < mdf.getPictureCount (); i++) {
1039
1039
html += " <li><a href=\" " ;
1040
1040
html += mdf.getPictureObj (i)->getUrl ();
1041
1041
html += " \" >" ;
@@ -1056,7 +1056,7 @@ vscp_getDeviceInfoHtml(CMDF &mdf, CStandardRegisters &stdregs)
1056
1056
1057
1057
html += " <br><b>Videos</b><ul>" ;
1058
1058
1059
- for (int i = 0 ; i < mdf.getVideoCount (); i++) {
1059
+ for (size_t i = 0 ; i < mdf.getVideoCount (); i++) {
1060
1060
html += " <li><a href=\" " ;
1061
1061
html += mdf.getVideoObj (i)->getUrl ();
1062
1062
html += " \" >" ;
@@ -1077,7 +1077,7 @@ vscp_getDeviceInfoHtml(CMDF &mdf, CStandardRegisters &stdregs)
1077
1077
1078
1078
html += " <br><b>Firmware</b><ul>" ;
1079
1079
1080
- for (int i = 0 ; i < mdf.getFirmwareCount (); i++) {
1080
+ for (size_t i = 0 ; i < mdf.getFirmwareCount (); i++) {
1081
1081
html += " <li><a href=\" " ;
1082
1082
html += mdf.getFirmwareObj (i)->getUrl ();
1083
1083
html += " \" >" ;
@@ -1098,7 +1098,7 @@ vscp_getDeviceInfoHtml(CMDF &mdf, CStandardRegisters &stdregs)
1098
1098
1099
1099
html += " <br><b>Drivers</b><ul>" ;
1100
1100
1101
- for (int i = 0 ; i < mdf.getDriverCount (); i++) {
1101
+ for (size_t i = 0 ; i < mdf.getDriverCount (); i++) {
1102
1102
html += " <li><a href=\" " ;
1103
1103
html += mdf.getDriverObj (i)->getUrl ();
1104
1104
html += " \" >" ;
@@ -1119,7 +1119,7 @@ vscp_getDeviceInfoHtml(CMDF &mdf, CStandardRegisters &stdregs)
1119
1119
1120
1120
html += " <br><b>Manuals</b><ul>" ;
1121
1121
1122
- for (int i = 0 ; i < mdf.getManualCount (); i++) {
1122
+ for (size_t i = 0 ; i < mdf.getManualCount (); i++) {
1123
1123
html += " <li><a href=\" " ;
1124
1124
html += mdf.getManualObj (i)->getUrl ();
1125
1125
html += " \" >" ;
@@ -1140,7 +1140,7 @@ vscp_getDeviceInfoHtml(CMDF &mdf, CStandardRegisters &stdregs)
1140
1140
1141
1141
html += " <br><b>Setup wizards</b><ul>" ;
1142
1142
1143
- for (int i = 0 ; i < mdf.getSetupCount (); i++) {
1143
+ for (size_t i = 0 ; i < mdf.getSetupCount (); i++) {
1144
1144
html += " <li><a href=\" " ;
1145
1145
html += mdf.getSetupObj (i)->getUrl ();
1146
1146
html += " \" >" ;
@@ -1812,8 +1812,8 @@ CUserRegisters::remoteVarFromRegToString(CMDF_RemoteVariable &remoteVar, std::st
1812
1812
for (int i = 0 ; i < remoteVar.getTypeByteCount (); i++) {
1813
1813
buf[i] = ppage->getReg (remoteVar.getOffset () + i);
1814
1814
}
1815
- uint32_t n = VSCP_UINT32_SWAP_ON_LE (*((uint32_t *) buf));
1816
- float f = *((float *) ((uint8_t *) &n));
1815
+ // uint32_t n = VSCP_UINT32_SWAP_ON_LE(*((uint32_t *) buf));
1816
+ // float f = *((float *) ((uint8_t *) &n));
1817
1817
strValue = vscp_str_format (" %f" , *((float *) buf));
1818
1818
free (buf);
1819
1819
}
@@ -1826,8 +1826,8 @@ CUserRegisters::remoteVarFromRegToString(CMDF_RemoteVariable &remoteVar, std::st
1826
1826
for (int i = 0 ; i < remoteVar.getTypeByteCount (); i++) {
1827
1827
buf[i] = ppage->getReg (remoteVar.getOffset () + i);
1828
1828
}
1829
- uint64_t n = VSCP_UINT32_SWAP_ON_LE (*((uint32_t *) buf));
1830
- double f = *((double *) ((uint8_t *) &n));
1829
+ // uint64_t n = VSCP_UINT32_SWAP_ON_LE(*((uint32_t *) buf));
1830
+ // double f = *((double *) ((uint8_t *) &n));
1831
1831
strValue = vscp_str_format (" %g" , *((double *) buf));
1832
1832
1833
1833
free (buf);
@@ -1889,7 +1889,7 @@ CUserRegisters::remoteVarFromStringToReg(CMDF_RemoteVariable &remoteVar, std::st
1889
1889
for a level I device but that is not a problem as they never
1890
1890
will be written to the device.
1891
1891
*/
1892
- for (int i = 0 ; i < strValue.length (); i++) {
1892
+ for (size_t i = 0 ; i < strValue.length (); i++) {
1893
1893
ppage->putReg (remoteVar.getOffset () + i, strValue[i]);
1894
1894
}
1895
1895
} break ;
0 commit comments