Skip to content

Commit

Permalink
Change channel mask to uint8_t for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nwright-mcc committed Oct 18, 2023
1 parent 225a2ed commit 07e075a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/c/daqhats_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void convert_tc_type_to_string(uint8_t tc_type,
/* This function converts the mask of channels defined by the channel_mask
parameter and sets the chans_str parameter, which is passed by reference,
to a comma separated string respresentation of the channel numbers. */
void convert_chan_mask_to_string(uint32_t channel_mask, char* chans_str)
void convert_chan_mask_to_string(uint8_t channel_mask, char* chans_str)
{
int i = 0;
char chan_string[8];
Expand All @@ -235,7 +235,7 @@ void convert_chan_mask_to_string(uint32_t channel_mask, char* chans_str)
parameter and sets the chans parameter, which is passed by reference,
to an array of channel numbers.
The return value is an integer representing the number of channels. */
int convert_chan_mask_to_array(uint32_t channel_mask, int chans[])
int convert_chan_mask_to_array(uint8_t channel_mask, int chans[])
{
int i = 0;
int chan_count = 0;
Expand Down

0 comments on commit 07e075a

Please sign in to comment.