removed debug code
This commit is contained in:
parent
baaf4c474b
commit
0790201af9
@ -90,9 +90,7 @@ void OneWireSlave::begin(byte* rom, byte pinNumber)
|
|||||||
|
|
||||||
void OneWireSlave::end()
|
void OneWireSlave::end()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_LOG
|
// log("Disabling 1-wire library");
|
||||||
debug.append("Disabling 1-wire library");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
cli();
|
cli();
|
||||||
disableTimer_();
|
disableTimer_();
|
||||||
@ -143,26 +141,14 @@ void OneWireSlave::disableTimer_()
|
|||||||
|
|
||||||
void OneWireSlave::onEnterInterrupt_()
|
void OneWireSlave::onEnterInterrupt_()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_LOG
|
|
||||||
dbgOutput.writeLow();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OneWireSlave::onLeaveInterrupt_()
|
void OneWireSlave::onLeaveInterrupt_()
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_LOG
|
|
||||||
dbgOutput.writeHigh();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void OneWireSlave::error_(const char* message)
|
void OneWireSlave::error_(const char* message)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG_LOG
|
|
||||||
if (message == 0)
|
|
||||||
debug.append("unspecified error");
|
|
||||||
else
|
|
||||||
debug.append(message);
|
|
||||||
#endif
|
|
||||||
beginWaitReset_();
|
beginWaitReset_();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user