Fix wrong data type for velocity
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
float velocity;
|
uint32_t velocity;
|
||||||
float fanpower;
|
float fanpower;
|
||||||
}
|
}
|
||||||
SimWindData;
|
SimWindData;
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ int arduino_simwind_update(SimDevice* this, SimData* simdata)
|
|||||||
int result = 1;
|
int result = 1;
|
||||||
|
|
||||||
serialdevice->u.simwinddata.velocity = simdata->velocity;
|
serialdevice->u.simwinddata.velocity = simdata->velocity;
|
||||||
|
slogt("Updating arduino device speed to %i", serialdevice->u.simwinddata.velocity);
|
||||||
// this can be added to the config, all config dependent can be added to init
|
// this can be added to the config, all config dependent can be added to init
|
||||||
serialdevice->u.simwinddata.fanpower = 0.6;
|
serialdevice->u.simwinddata.fanpower = 0.6;
|
||||||
size_t size = sizeof(SimWindData);
|
size_t size = sizeof(SimWindData);
|
||||||
|
|||||||
Reference in New Issue
Block a user