await readThingProperty correctly

This commit is contained in:
Richard Bowman 2023-12-01 21:27:38 +00:00
parent 9817b4963a
commit e3265b1dff
2 changed files with 5 additions and 5 deletions

View file

@ -201,16 +201,16 @@ export default {
show: async function() {
// Check if the camera and stage are calibrated, if they can be
if (this.canCSMCalibrated) {
/*let csm = this.readThingProperty(
let csm = await this.readThingProperty(
"camera_stage_mapping",
"image_to_stage_displacement_matrix",
true
);
this.isCSMCalibrated = Boolean(csm);*/
this.isCSMCalibrated = Boolean(csm);
}
if (this.canLSTCalibrated) {
this.isLSTCalibrated = this.readThingProperty(
"picamera",
this.isLSTCalibrated = await this.readThingProperty(
"camera",
"lens_shading_is_static"
);
}

View file

@ -63,7 +63,7 @@ export default {
methods: {
getCalibrationData: async function() {
try {
let data = this.readThingProperty(
let data = await this.readThingProperty(
"camera_stage_mapping",
"last_calibration"
);