From a2d341f4d62edfac402d8f090479613b2ed4dbba Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 19 Sep 2024 17:18:16 +0800 Subject: [PATCH] satman mgmt: get_slice_sat -> get_slice_satellite --- artiq/firmware/satman/mgmt.rs | 2 +- artiq/firmware/satman/routing.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/artiq/firmware/satman/mgmt.rs b/artiq/firmware/satman/mgmt.rs index 2b44bc4bb..ad0526b0d 100644 --- a/artiq/firmware/satman/mgmt.rs +++ b/artiq/firmware/satman/mgmt.rs @@ -31,7 +31,7 @@ impl Manager { } pub fn get_config_value_slice(&mut self, data_slice: &mut [u8; SAT_PAYLOAD_MAX_SIZE]) -> SliceMeta { - self.last_value.get_slice_sat(data_slice) + self.last_value.get_slice_satellite(data_slice) } pub fn add_config_data(&mut self, data: &[u8], data_len: usize) { diff --git a/artiq/firmware/satman/routing.rs b/artiq/firmware/satman/routing.rs index f8e0e6d24..2861f9fe6 100644 --- a/artiq/firmware/satman/routing.rs +++ b/artiq/firmware/satman/routing.rs @@ -4,6 +4,7 @@ use board_artiq::{drtioaux, drtio_routing}; use board_misoc::csr; use core::cmp::min; use proto_artiq::drtioaux_proto::PayloadStatus; +use SAT_PAYLOAD_MAX_SIZE; use MASTER_PAYLOAD_MAX_SIZE; /* represents data that has to be sent with the aux protocol */ @@ -56,6 +57,7 @@ impl Sliceable { self.data.extend(data); } + get_slice_fn!(get_slice_satellite, SAT_PAYLOAD_MAX_SIZE); get_slice_fn!(get_slice_master, MASTER_PAYLOAD_MAX_SIZE); }