2018-07-23 08:25:23 +02:00
|
|
|
#ifdef HAS_BUTTON
|
|
|
|
|
|
|
|
#include "globals.h"
|
2018-10-04 22:08:54 +02:00
|
|
|
#include "button.h"
|
2018-07-23 08:25:23 +02:00
|
|
|
|
|
|
|
// Local logging tag
|
|
|
|
static const char TAG[] = "main";
|
|
|
|
|
|
|
|
void readButton() {
|
|
|
|
ESP_LOGI(TAG, "Button pressed");
|
|
|
|
payload.reset();
|
|
|
|
payload.addButton(0x01);
|
2018-08-04 15:27:58 +02:00
|
|
|
SendData(BUTTONPORT);
|
2018-07-23 08:25:23 +02:00
|
|
|
}
|
|
|
|
#endif
|