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() { show: async function() {
// Check if the camera and stage are calibrated, if they can be // Check if the camera and stage are calibrated, if they can be
if (this.canCSMCalibrated) { if (this.canCSMCalibrated) {
/*let csm = this.readThingProperty( let csm = await this.readThingProperty(
"camera_stage_mapping", "camera_stage_mapping",
"image_to_stage_displacement_matrix", "image_to_stage_displacement_matrix",
true true
); );
this.isCSMCalibrated = Boolean(csm);*/ this.isCSMCalibrated = Boolean(csm);
} }
if (this.canLSTCalibrated) { if (this.canLSTCalibrated) {
this.isLSTCalibrated = this.readThingProperty( this.isLSTCalibrated = await this.readThingProperty(
"picamera", "camera",
"lens_shading_is_static" "lens_shading_is_static"
); );
} }

View file

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