Fixed bugs
This commit is contained in:
@@ -11,7 +11,7 @@ namespace can {
|
||||
template <typename T>
|
||||
static T convert(uint8_t* buf, uint8_t len) {
|
||||
// @TODO Handle errors in a more elegant manner
|
||||
assert(len != sizeof(T));
|
||||
assert(len == sizeof(T));
|
||||
|
||||
return *(T*)buf;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ const char* connection_state_to_str(esp_a2d_connection_state_t state);
|
||||
|
||||
class MultiPurposeButton {
|
||||
public:
|
||||
MultiPurposeButton(void(*short_press)(), void(*long_press)(), uint16_t threshold = 500);
|
||||
MultiPurposeButton(void(*short_press)(), void(*long_press)(), uint16_t threshold = 300);
|
||||
|
||||
void update(bool current);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user