daemon/device_information: Fixed issues

For some reason, the compiler didn't complain about any of this...
This commit is contained in:
Yuki Joou 2023-08-27 23:33:54 +02:00
parent d91697be1a
commit 8f940254ff

View file

@ -1,6 +1,9 @@
#pragma once
#include <stdint.h>
#include <wayland-client.h>
struct device_information {
char const* const device_name;
@ -59,7 +62,7 @@ static struct device_information DEVICE_INFOS[] = {
.target_motion_sensor = "/sys/bus/iio/devices/iio:device1",
.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_180DEG] = WL_OUTPUT_TRANSFORM_180,
[ACCEL_ROTATION_270DEG] = WL_OUTPUT_TRANSFORM_90,