Arduino Uno waitReset_ issue #2

Closed
opened 4 years ago by Ben · 0 comments
Ben commented 4 years ago

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.
Ben closed this issue 4 years ago
Ben reopened this issue 4 years ago
Ben closed this issue 4 years ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.