Skip to content

Commit

Permalink
Refactor SdOfflineLogger to use sensor ID only
Browse files Browse the repository at this point in the history
  • Loading branch information
TonProtofy committed Oct 31, 2024
1 parent eb70d89 commit d54ae0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/protodevice/src/device/SdOfflineLogger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,7 @@ class SdOfflineLogger {
}
attach(pin, deviceComponents) {
deviceComponents?.sensor?.forEach((sensor) => {
if (sensor.name){
this.sensorsArray.push(sensor.name);
} else if (sensor.id){
if (sensor.id){
this.sensorsArray.push(sensor.id);
}
});
Expand Down

0 comments on commit d54ae0b

Please sign in to comment.