]> git.tdb.fi Git - r2c2.git/blobdiff - source/serial/serial.h
Derive application classes from RegisteredApplication
[r2c2.git] / source / serial / serial.h
index b1f1908059cf6102b2d27815d2e03bd7d0390d80..d2ae4dd06952f50e38c8f2feb7130cf6281c6173 100644 (file)
@@ -5,7 +5,7 @@
 #include <msp/io/serial.h>
 #include "network/client.h"
 
-class Serial: public Msp::Application
+class Serial: public Msp::RegisteredApplication<Serial>
 {
 private:
        Msp::IO::EventDispatcher event_disp;
@@ -17,8 +17,6 @@ private:
        char rx_buf[3];
        unsigned rx_fill;
 
-       static Msp::Application::RegApp<Serial> reg;
-
 public:
        Serial(int, char **);