Skip to content

Commit

Permalink
Merge pull request #466 from SCADA-LTS/bug/#459_master_sdtabilit_MDS_…
Browse files Browse the repository at this point in the history
…alphanumeric_text_output

Bug/#459 master sdtabilit mds alphanumeric text output
  • Loading branch information
radek2s authored Feb 13, 2018
2 parents 567204f + 53aff70 commit f89d278
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/com/serotonin/mango/rt/dataImage/SetPointSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public interface Types {
int EVENT_HANDLER = 2;
int ANONYMOUS = 3;
int POINT_LINK = 4;
int UNKNOWN = 5;
}

public int getSetPointSourceType();
Expand Down
6 changes: 4 additions & 2 deletions src/org/scada_lts/mango/service/PointValueService.java
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ private long savePointValueImpl(int pointId, int dataType, double dvalue, long t
if (source != null) {
sourceType = source.getSetPointSourceType();
sourceId = source.getSetPointSourceId();
} else {
sourceType = SetPointSource.Types.UNKNOWN;
sourceId = new Integer(1);
}

String shortString = null;
Expand All @@ -285,9 +288,8 @@ private long savePointValueImpl(int pointId, int dataType, double dvalue, long t
}

PointValueAdnnotation pointValueAdnnotation = new PointValueAdnnotation(id,shortString, longString, sourceType, sourceId);

PointValueAdnnotationsDAO.getInstance().create(pointValueAdnnotation);
}

return id;
Expand Down

0 comments on commit f89d278

Please sign in to comment.