File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
drivers/include/drivers/interfaces Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ struct DigitalIn {
38
38
virtual void mode (PinMode pull) = 0;
39
39
virtual int is_connected () = 0;
40
40
41
- virtual operator int ()
41
+ operator int ()
42
42
{
43
43
// Underlying implementation is responsible for thread-safety
44
44
return read ();
Original file line number Diff line number Diff line change @@ -42,21 +42,21 @@ struct DigitalInOut {
42
42
virtual void mode (PinMode pull) = 0;
43
43
virtual int is_connected () = 0;
44
44
45
- virtual DigitalInOut &operator = (int value)
45
+ DigitalInOut &operator = (int value)
46
46
{
47
47
// Underlying implementation is responsible for thread-safety
48
48
write (value);
49
49
return *this ;
50
50
}
51
51
52
- virtual DigitalInOut &operator = (DigitalInOut &rhs)
52
+ DigitalInOut &operator = (DigitalInOut &rhs)
53
53
{
54
54
// Underlying implementation is responsible for thread-safety
55
55
write (rhs.read ());
56
56
return *this ;
57
57
}
58
58
59
- virtual operator int ()
59
+ operator int ()
60
60
{
61
61
// Underlying implementation is responsible for thread-safety
62
62
return read ();
Original file line number Diff line number Diff line change @@ -39,21 +39,21 @@ struct DigitalOut {
39
39
virtual int read () = 0;
40
40
virtual int is_connected () = 0;
41
41
42
- virtual DigitalOut &operator = (int value)
42
+ DigitalOut &operator = (int value)
43
43
{
44
44
// Underlying implementation is responsible for thread-safety
45
45
write (value);
46
46
return *this ;
47
47
}
48
48
49
- virtual DigitalOut &operator = (DigitalOut &rhs)
49
+ DigitalOut &operator = (DigitalOut &rhs)
50
50
{
51
51
// Underlying implementation is responsible for thread-safety
52
52
write (rhs.read ());
53
53
return *this ;
54
54
}
55
55
56
- virtual operator int ()
56
+ operator int ()
57
57
{
58
58
// Underlying implementation is responsible for thread-safety
59
59
return read ();
You can’t perform that action at this time.
0 commit comments