Skip to content

Commit

Permalink
fix: type errors ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sanriodev committed Sep 15, 2024
1 parent bbbec55 commit fd69782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/modbus-reader/modbus-reader.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class ModbusReaderService {
addresses: ModbusReadParams[],
): Promise<ModbusReadResult[]> {
try {
let res: [{ key: string; readResult: ReadRegisterResult }] = [];
let res: ModbusReadResult[] = [];
for (const address of addresses) {
res.push({
key: address.key,
Expand Down

0 comments on commit fd69782

Please sign in to comment.