Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/ec #81

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sam/src/Commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ void i2cDetect_com(SckBase* base, String parameters)
error = Wire.endTransmission();
} else {
auxWire.beginTransmission(address);
if (address == 0x62 || address == 0x63 || address == 0x64) auxWire.write("Sleep");
error = auxWire.endTransmission();
}

Expand Down
2 changes: 1 addition & 1 deletion sam/src/SckAux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ bool Atlas::sendCommand(char* command)
return true;
}

delay(300);
delay(600);
}
return false;
}
Expand Down
3 changes: 3 additions & 0 deletions sam/src/SckBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2058,6 +2058,9 @@ void SckBase::getUniqueID()
bool I2Cdetect(TwoWire *_Wire, byte address)
{
_Wire->beginTransmission(address);

if (address == 0x62 || address == 0x63 || address == 0x64) auxWire.write("Sleep");

byte error = _Wire->endTransmission();

if (error == 0) return true;
Expand Down