daemon/device_information: Fixed issues
For some reason, the compiler didn't complain about any of this...
This commit is contained in:
parent
d91697be1a
commit
8f940254ff
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include <wayland-client.h>
|
||||||
|
|
||||||
struct device_information {
|
struct device_information {
|
||||||
char const* const device_name;
|
char const* const device_name;
|
||||||
|
|
||||||
|
@ -59,7 +62,7 @@ static struct device_information DEVICE_INFOS[] = {
|
||||||
.target_motion_sensor = "/sys/bus/iio/devices/iio:device1",
|
.target_motion_sensor = "/sys/bus/iio/devices/iio:device1",
|
||||||
.sensor_to_output_rotation =
|
.sensor_to_output_rotation =
|
||||||
{
|
{
|
||||||
[ACCEL_ROTATION_0DEG] = WL_OUTPUT_TRANSFORM_NORAML,
|
[ACCEL_ROTATION_0DEG] = WL_OUTPUT_TRANSFORM_NORMAL,
|
||||||
[ACCEL_ROTATION_90DEG] = WL_OUTPUT_TRANSFORM_270,
|
[ACCEL_ROTATION_90DEG] = WL_OUTPUT_TRANSFORM_270,
|
||||||
[ACCEL_ROTATION_180DEG] = WL_OUTPUT_TRANSFORM_180,
|
[ACCEL_ROTATION_180DEG] = WL_OUTPUT_TRANSFORM_180,
|
||||||
[ACCEL_ROTATION_270DEG] = WL_OUTPUT_TRANSFORM_90,
|
[ACCEL_ROTATION_270DEG] = WL_OUTPUT_TRANSFORM_90,
|
||||||
|
|
Loading…
Reference in a new issue