Update sensor_event.h

This commit is contained in:
Chatblanc77 2022-09-09 10:01:17 +07:00 committed by GitHub
parent ce52ef926a
commit 8394629b5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,13 +6,14 @@
#pragma once
#include <drivers/sensor.h>
#include <zephyr.h>
#include <zmk/event_manager.h>
#include <device.h>
struct zmk_sensor_event {
uint8_t sensor_number;
const struct device *sensor;
struct sensor_value value;
int64_t timestamp;
};
ZMK_EVENT_DECLARE(zmk_sensor_event);
ZMK_EVENT_DECLARE(zmk_sensor_event);