Skip to content

Commit

Permalink
DM: fix bitmasks
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm1278 committed Nov 27, 2018
1 parent 85cbb86 commit 3c0bcf8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Adafruit_AMG88xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Adafruit_AMG88xx {
uint8_t OVF_THS : 1;

uint8_t get(){
return ( (OVF_THS << 3) | (OVF_IRS << 2) | (INTF << 1) ) & 0x07;
return ( (OVF_THS << 3) | (OVF_IRS << 2) | (INTF << 1) ) & 0x0E;
}
};
stat _stat;
Expand All @@ -206,7 +206,7 @@ class Adafruit_AMG88xx {
uint8_t OVT_CLR : 1;

uint8_t get(){
return ((OVT_CLR << 3) | (OVS_CLR << 2) | (INTCLR << 1)) & 0x07;
return ((OVT_CLR << 3) | (OVS_CLR << 2) | (INTCLR << 1)) & 0x0E;
}
};
sclr _sclr;
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit AMG88xx Library
version=1.0.4
version=1.0.5
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library for AMG88xx 8x8 Thermocouple Sensors.
Expand Down

0 comments on commit 3c0bcf8

Please sign in to comment.