mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-14 05:47:23 +00:00
13 lines
196 B
C++
13 lines
196 B
C++
|
|
#include "Observer.h"
|
||
|
|
|
||
|
|
Observer::~Observer()
|
||
|
|
{
|
||
|
|
if (observed)
|
||
|
|
observed->removeObserver(this);
|
||
|
|
observed = NULL;
|
||
|
|
}
|
||
|
|
|
||
|
|
void Observer::observe(Observable *o)
|
||
|
|
{
|
||
|
|
o->addObserver(this);
|
||
|
|
}
|