Skip to content

Commit

Permalink
Fix for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mlx-kva committed Aug 19, 2021
1 parent 8232023 commit 10b8b8b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mlx90641/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
__import__('pkg_resources').declare_namespace(__name__)


__version__ = '1.1.3'
__version__ = '1.2.0'


# try to pre-load our 3 default I2C low level implementations!
Expand Down
7 changes: 4 additions & 3 deletions mlx90641/c-code/src/MLX90641_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -1257,15 +1257,15 @@ void ExtractCPParameters(uint16_t *eeData, paramsMLX90641 *mlx90641)
alphaCP = alphaCP / pow(2,(double)alphaScale);


cpKta = eeData[49] & 0x001F;
cpKta = eeData[49] & 0x003F;
if (cpKta > 31)
{
cpKta = cpKta - 64;
}
ktaScale1 = eeData[49] >> 6;
mlx90641->cpKta = cpKta / pow(2,(double)ktaScale1);

cpKv = eeData[50] & 0x001F;
cpKv = eeData[50] & 0x003F;
if (cpKv > 31)
{
cpKv = cpKv - 64;
Expand Down Expand Up @@ -1328,4 +1328,5 @@ int ExtractDeviatingPixels(uint16_t *eeData, paramsMLX90641 *mlx90641)
}

return -7;
}
}

0 comments on commit 10b8b8b

Please sign in to comment.