victor-dmm: Fix compiler warning.
protocol.c:106:10: warning: 'factor' may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit is contained in:
parent
f057272cac
commit
6375e1c3eb
|
@ -70,6 +70,7 @@ static void decode_buf(struct dev_context *devc, unsigned char *data)
|
|||
}
|
||||
|
||||
/* Decimal point position */
|
||||
factor = 0;
|
||||
switch (data[7] >> 4) {
|
||||
case 0x00:
|
||||
factor = 0;
|
||||
|
|
Loading…
Reference in New Issue