mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-25 17:42:48 +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);
|
|
} |