mirror of
https://github.com/erjiang/usbscale.git
synced 2025-06-28 17:10:58 -06:00
Fix typo
This commit is contained in:
parent
03fd49d8d5
commit
6ec35c72a3
@ -312,7 +312,7 @@ static int print_scale_data(unsigned char* dat) {
|
|||||||
uint8_t report = dat[0];
|
uint8_t report = dat[0];
|
||||||
uint8_t status = dat[1];
|
uint8_t status = dat[1];
|
||||||
uint8_t unit = dat[2];
|
uint8_t unit = dat[2];
|
||||||
// Accoring to the docs, scaling applied to the data as a base ten exponent
|
// According to the docs, scaling applied to the data as a base ten exponent
|
||||||
int8_t expt = dat[3];
|
int8_t expt = dat[3];
|
||||||
// convert to machine order at all times
|
// convert to machine order at all times
|
||||||
double weight = (double) le16toh(dat[5] << 8 | dat[4]);
|
double weight = (double) le16toh(dat[5] << 8 | dat[4]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user