@cpzxrobot/sdk 1.1.64 → 1.1.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,10 +199,11 @@ export class FeedTowerGateway extends DeviceFilter<FeedTower> {
|
|
|
199
199
|
force: force
|
|
200
200
|
});
|
|
201
201
|
},
|
|
202
|
-
correctWeight: (ft: FeedTowerV2, amount: Number) => {
|
|
202
|
+
correctWeight: (ft: FeedTowerV2, amount: Number,displayAmount: Number| undefined = undefined) => {
|
|
203
203
|
return this.context.axios.post(`/api/v2/device/feedTower/correctWeight`, {
|
|
204
204
|
id: ft.id,
|
|
205
205
|
suttle: amount,
|
|
206
|
+
displaySuttle: displayAmount
|
|
206
207
|
});
|
|
207
208
|
}
|
|
208
209
|
};
|
|
@@ -137,10 +137,11 @@ class FeedTowerGateway extends device_filter_1.DeviceFilter {
|
|
|
137
137
|
force: force
|
|
138
138
|
});
|
|
139
139
|
},
|
|
140
|
-
correctWeight: (ft, amount) => {
|
|
140
|
+
correctWeight: (ft, amount, displayAmount = undefined) => {
|
|
141
141
|
return this.context.axios.post(`/api/v2/device/feedTower/correctWeight`, {
|
|
142
142
|
id: ft.id,
|
|
143
143
|
suttle: amount,
|
|
144
|
+
displaySuttle: displayAmount
|
|
144
145
|
});
|
|
145
146
|
}
|
|
146
147
|
};
|