-
-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
(insert code does not seem to work.. not with ticks
and not with code
)
Given this code example:
struct Printer {
template<typename Item>
void apply(Item &i) {
if (i.present()) {
Serial.print(Item::name);
Serial.print(F(": "));
Serial.print(i.val());
Serial.print(Item::unit());
Serial.println();
}
}
};
.. how do I get the int_val()???
tried everything I can think off ..
Item::int_val
Item::int_val()
i.int_val()
i.int_val()
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels