Skip to content

Commit 89eab48

Browse files
committed
Matched Python APIs: Device is not abstract. (#319)
1 parent 066ac7f commit 89eab48

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Device.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class Device {
1919
void parentTags(const ArrayList<String> &parentTags) { _parentTags = parentTags; }
2020
const ArrayList<String> &parentTags() { return _parentTags; }
2121
virtual void initialize(const ArrayList<String> &parentTags) { _parentTags = parentTags; }
22-
virtual T read() = 0;
23-
virtual void write(T payload) = 0;
24-
virtual void update(T data) = 0;
22+
virtual T read() { return T(); }
23+
virtual void write(T payload) {}
24+
virtual void update(T data) {}
2525
virtual void close() {}
2626
};
2727

0 commit comments

Comments
 (0)