Skip to content

Commit

Permalink
merged from V1
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-pa committed Feb 23, 2017
1 parent 17de9cc commit cad234f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Device.h
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ class Device {
*buf++ = 0;
current++;
pm.entries(current);
pm.clearAck();
send(msg,to);
}

Expand Down Expand Up @@ -359,6 +360,7 @@ class Device {
memset(buf,0,sizeof(Peer));
current++;
pm.entries(current);
pm.clearAck();
send(msg,to);
}

Expand Down
4 changes: 4 additions & 0 deletions Message.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,10 @@ class Message {
flag |= RPTEN;
}

void clearAck () {
flag &= ~BIDI;
}

bool isWakeMeUp () const {
return (flag & WKMEUP) == WKMEUP;
}
Expand Down
6 changes: 3 additions & 3 deletions MultiChannelDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

namespace as {

void(* resetFunc) (void) = 0;

template <class HalType,class ChannelType,int ChannelCount,class List0Type=List0>
class MultiChannelDevice : public Device<HalType> {

Expand Down Expand Up @@ -107,9 +109,7 @@ class MultiChannelDevice : public Device<HalType> {
void reset () {
DPRINTLN(F("RESET"));
firstinit();
DeviceType::keystore().init();
DeviceType::setMasterID(list0.masterid());
DeviceType::led().set(StatusLed::welcome);
resetFunc();
}

void bootloader () {
Expand Down

0 comments on commit cad234f

Please sign in to comment.