Skip to content

Commit

Permalink
code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
noursaidi committed May 24, 2022
1 parent 22c9791 commit dc91ec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/pubber
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ EOF
$ROOT_DIR/pubber/bin/run /tmp/pubber_config.json
else
$ROOT_DIR/pubber/bin/run $project_id $site_path $device_id $serial_no
fi
fi
5 changes: 3 additions & 2 deletions pubber/src/main/java/daq/pubber/Pubber.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,9 @@ private void initializeDevice() {
deviceState.system.software.put("firmware", "v1");
devicePoints.extraField = configuration.extraField;

if(configuration.extraPoint!= null && !configuration.extraPoint.isEmpty()){
addPoint(makePoint(configuration.extraPoint, makePointPointsetModel(true, 50, 50, "Celsius")));
if (configuration.extraPoint != null && !configuration.extraPoint.isEmpty()) {
addPoint(makePoint(configuration.extraPoint,
makePointPointsetModel(true, 50, 50, "Celsius")));
}
markStateDirty(0);
}
Expand Down

0 comments on commit dc91ec3

Please sign in to comment.