Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update module.php
  • Loading branch information
Joey-1970 committed Dec 10, 2018
1 parent db265bf commit 0d6b28c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions GeCoS_16In/module.php
Expand Up @@ -252,16 +252,16 @@ private function Interrupt()

// Statusvariablen setzen
for ($i = 0; $i <= 7; $i++) {
If (pow(2, $i) AND $INTFA) {
If (((pow(2, $i) & $INTFA) >> $i) == true) {
// Port A
$Value = $INTCAPA & pow(2, $i);
$Value = boolval($INTCAPA & pow(2, $i));
If (GetValueBoolean($this->GetIDForIdent("Input_X".$i)) == !$Value) {
SetValueBoolean($this->GetIDForIdent("Input_X".$i), $Value);
}
}
If (pow(2, $i) AND $INTFB) {
If (((pow(2, $i) & $INTFB) >> $i) == true) {
// Port B
$Value = $INTCAPB & pow(2, $i);
$Value = boolval($INTCAPB & pow(2, $i));
If (GetValueBoolean($this->GetIDForIdent("Input_X".($i + 8))) == !$Value) {
SetValueBoolean($this->GetIDForIdent("Input_X".($i + 8)), $Value);
}
Expand Down

0 comments on commit 0d6b28c

Please sign in to comment.