Skip to content

Commit 8e9e2d1

Browse files
committed
Generate new Sensor GUIDs
See: https://learn.microsoft.com/en-us/windows-hardware/drivers/gettingstarted/from-sample-code-to-production-driver Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 8c55c99 commit 8e9e2d1

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

FrameworkSensors/AccelerometerClient.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
#define AccelerometerDevice_Axis_Minimum (-2.0f) // in g
2222
#define AccelerometerDevice_Axis_Maximum (2.0f) // in g
2323

24-
// TODO: New GUID for this?
2524
// Accelerometer Unique ID
26-
// {2BAAA1A7-6795-42A0-B830-82526CFD28D1}
25+
// {A931067B-D450-42A4-8B20-2647D4CA9D2D}
2726
DEFINE_GUID(GUID_AccelerometerDevice_UniqueID,
28-
0x2baaa1a7, 0x6795, 0x42a0, 0xb8, 0x30, 0x82, 0x52, 0x6c, 0xfd, 0x28, 0xd1);
27+
0xa931067b, 0xd450, 0x42a4, 0x8b, 0x20, 0x26, 0x47, 0xd4, 0xca, 0x9d, 0x2d);
2928

3029
// Sensor data
3130
typedef enum

FrameworkSensors/AlsClient.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
#define AlsDevice_Resolution_Lux (AlsDevice_Range_Lux / AlsDevice_Precision)
3030

3131
// Ambient Light Sensor Unique ID
32-
// {2D2A4524-51E3-4E68-9B0F-5CAEDFB12C02}
32+
// {506AC61B-C762-499E-A848-685FC45DF39F}
3333
DEFINE_GUID(GUID_AlsDevice_UniqueID,
34-
0x2d2a4524, 0x51e3, 0x4e68, 0x9b, 0xf, 0x5c, 0xae, 0xdf, 0xb1, 0x2c, 0x2);
34+
0x506ac61b, 0xc762, 0x499e, 0xa8, 0x48, 0x68, 0x5f, 0xc4, 0x5d, 0xf3, 0x9f);
3535

3636
// Sensor data
3737
typedef enum

FrameworkSensors/SimpleDeviceOrientationClient.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@
2121
#define SimpleDeviceOrientationDevice_Axis_Maximum (2.0f) // in g
2222

2323
// Simple Device Orientation ID
24-
// {4A303B3E-332A-4044-A35A-282F3D6D56E5}
24+
// {D1FCD247-5848-433A-9129-4C0B93979BE4}
2525
DEFINE_GUID(GUID_SimpleDeviceOrientationDevice_UniqueID,
26-
0x4a303b3e, 0x332a, 0x4044, 0xa3, 0x5a, 0x28, 0x2f, 0x3d, 0x6d, 0x56,
27-
0xe5);
26+
0xd1fcd247, 0x5848, 0x433a, 0x91, 0x29, 0x4c, 0xb, 0x93, 0x97, 0x9b, 0xe4);
2827

2928
// Sensor data
3029
typedef enum

0 commit comments

Comments
 (0)