ibutton app, only read mode

This commit is contained in:
DrZlo13
2020-11-17 07:10:58 +10:00
parent a8fdbc6376
commit 799eefd754
5 changed files with 33 additions and 9 deletions

View File

@@ -129,8 +129,7 @@ bool OneWireGpioSlave::receiveBit(void) {
// wait while bus is HIGH
OneWiteTimeType time = OneWireEmulateTiming::SLOT_MAX[overdrive_mode];
time = wait_while_gpio(time, true);
if (time == 0)
{
if(time == 0) {
printf("RESET_IN_PROGRESS\n");
return false;
}
@@ -144,8 +143,7 @@ bool OneWireGpioSlave::receiveBit(void) {
// wait while bus is LOW
time = OneWireEmulateTiming::MSG_HIGH_TIMEOUT;
time = wait_while_gpio(time, false);
if (time == 0)
{
if(time == 0) {
printf("TIMEOUT_HIGH\n");
return false;
}