Dears, I have been try the code on Arduino Uno, with atmega328p chip, I have modify the code as below,
void OneWireSlave::beginWaitReset_()
{
Serial.println("beginWaitReset_");
disableTimer_();
pin_.inputMode();
pin_.attachInterrupt(&OneWireSlave::waitReset_, CHANGE);
//resetStart_ = (unsigned int) - 1;
resetStart_ = (unsigned long) - 1;
}
void OneWireSlave::waitReset_()
{
Serial.println("waitReset_");
onEnterInterrupt_();
bool state = pin_.read();
unsigned long now = micros();
if (state)
{.....
only add with serial.print to debug. the result, only return beginWaitReset_, I can get in to waitReset_ process? could you please kindly to help me solve the issue.
Dears, I have been try the code on Arduino Uno, with atmega328p chip, I have modify the code as below,
void OneWireSlave::beginWaitReset_()
{
Serial.println("beginWaitReset_");
disableTimer_();
pin_.inputMode();
pin_.attachInterrupt(&OneWireSlave::waitReset_, CHANGE);
//resetStart_ = (unsigned int) - 1;
resetStart_ = (unsigned long) - 1;
}
void OneWireSlave::waitReset_()
{
Serial.println("waitReset_");
onEnterInterrupt_();
bool state = pin_.read();
unsigned long now = micros();
if (state)
{.....
only add with serial.print to debug. the result, only return beginWaitReset_, I can get in to waitReset_ process? could you please kindly to help me solve the issue.
Dears, I have been try the code on Arduino Uno, with atmega328p chip, I have modify the code as below,
void OneWireSlave::beginWaitReset_()
{
Serial.println("beginWaitReset_");
disableTimer_();
pin_.inputMode();
pin_.attachInterrupt(&OneWireSlave::waitReset_, CHANGE);
//resetStart_ = (unsigned int) - 1;
resetStart_ = (unsigned long) - 1;
}
void OneWireSlave::waitReset_()
{
Serial.println("waitReset_");
onEnterInterrupt_();
bool state = pin_.read();
unsigned long now = micros();
if (state)
{.....
only add with serial.print to debug. the result, only return beginWaitReset_, I can get in to waitReset_ process? could you please kindly to help me solve the issue.