File tree 2 files changed +12
-0
lines changed
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,17 @@ unsigned int* RCSwitch::getReceivedRawdata() {
521
521
return RCSwitch::timings;
522
522
}
523
523
524
+ pulse_list_t RCSwitch::getReceivedRawdataList () {
525
+
526
+ if (!this ->available ()) return pulse_list_t ();
527
+
528
+ pulse_list_t pulse_list = pulse_list_t (RCSwitch::timings+1 , RCSwitch::timings+((RCSwitch::nReceivedBitlength+1 )*2 ));
529
+
530
+ pulse_list.push_back (*RCSwitch::timings);
531
+
532
+ return pulse_list;
533
+ }
534
+
524
535
/* helper function for the receiveProtocol method */
525
536
static inline unsigned int diff (int A, int B) {
526
537
return abs (A - B);
Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ class RCSwitch {
74
74
unsigned int getReceivedDelay ();
75
75
unsigned int getReceivedProtocol ();
76
76
unsigned int * getReceivedRawdata ();
77
+ pulse_list_t getReceivedRawdataList ();
77
78
78
79
void setPulseLength (uint16_t nPulseLength);
79
80
void setRepeatTransmit (int nRepeatTransmit);
You can’t perform that action at this time.
0 commit comments