Fix wrong data type for velocity

This commit is contained in:
Paul Dino Jones 2024-03-05 17:23:29 -05:00
parent 34e9ba4405
commit 33d0b44f98
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
typedef struct
{
float velocity;
uint32_t velocity;
float fanpower;
}
SimWindData;

View File

@ -44,6 +44,7 @@ int arduino_simwind_update(SimDevice* this, SimData* simdata)
int result = 1;
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
serialdevice->u.simwinddata.fanpower = 0.6;
size_t size = sizeof(SimWindData);