From e177148bdd1333cbaf72052fb69d1ebc918899f6 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Mon, 1 Aug 2022 11:39:37 +0100 Subject: [PATCH] Update Cat.php --- application/models/Cat.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/models/Cat.php b/application/models/Cat.php index ed883799..815f7a1c 100644 --- a/application/models/Cat.php +++ b/application/models/Cat.php @@ -29,6 +29,7 @@ 'downlink_mode' => $result['downlink_mode'], 'uplink_mode' => $result['uplink_mode'], 'prop_mode' => 'SAT', + 'timestamp' => $timestamp, ); $this->db->where('id', $radio_id); @@ -51,6 +52,7 @@ 'uplink_freq' => $result['uplink_freq'], 'downlink_mode' => $result['downlink_mode'], 'uplink_mode' => $result['uplink_mode'], + 'timestamp' => $timestamp, ); if (isset($result['power'])) { $data['power'] = $result['power']; @@ -64,6 +66,7 @@ 'downlink_mode' => NULL, 'uplink_freq' => NULL, 'uplink_mode' => NULL, + 'timestamp' => $timestamp, ); if (isset($result['power'])) { $data['power'] = $result['power']; @@ -110,6 +113,7 @@ 'uplink_mode' => $result['uplink_mode'], 'prop_mode' => 'SAT', 'user_id' => $user_id, + 'timestamp' => $timestamp, ); } else if($result['radio'] == "CloudLogCATQt") { if ($result['prop_mode'] == "SAT") { @@ -124,6 +128,7 @@ 'downlink_mode' => $result['downlink_mode'], 'uplink_mode' => $result['uplink_mode'], 'user_id' => $user_id, + 'timestamp' => $timestamp, ); if (isset($result['power'])) { $data['power'] = $result['power']; @@ -139,6 +144,7 @@ 'uplink_freq' => NULL, 'uplink_mode' => NULL, 'user_id' => $user_id, + 'timestamp' => $timestamp, ); if (isset($result['power'])) { $data['power'] = $result['power'];