Skip to content

Commit

Permalink
update setWorkingModuleConfig to include mapReportSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter275 committed Jun 23, 2024
1 parent 283f548 commit a5a37cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/components/PageComponents/ModuleConfig/MQTT.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export const MQTT = (): JSX.Element => {
new Protobuf.ModuleConfig.ModuleConfig({
payloadVariant: {
case: "mqtt",
value: data,
value: {
...data,
mapReportSettings: new Protobuf.ModuleConfig.ModuleConfig_MapReportSettings(data.mapReportSettings)
},
},
}),
);
Expand Down
4 changes: 2 additions & 2 deletions src/validation/moduleConfig/mqtt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export class MqttValidationMapReportSettings
implements
Omit<Protobuf.ModuleConfig.ModuleConfig_MapReportSettings, keyof Message>
{
@IsOptional()
@IsNumber()
@IsOptional()
publishIntervalSecs: number;

@IsOptional()
@IsNumber()
@IsOptional()
positionPrecision: number;
}

0 comments on commit a5a37cd

Please sign in to comment.