mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
@@ -131,6 +131,9 @@ PowerTapUtil::unpack_data(unsigned char *buf, double rec_int_secs,
|
||||
else
|
||||
{
|
||||
*watts = ((buf[2] & 0x0f) << 8) | buf[3];
|
||||
if(*watts >= 4000.00)
|
||||
*watts = 0.0;
|
||||
|
||||
*cad = buf[4];
|
||||
if (*cad == 0xff)
|
||||
*cad = 0;
|
||||
|
||||
Reference in New Issue
Block a user