store_i fix return type

master
Max 1 year ago
parent f14bf6deb8
commit c06a318222
  1. 2
      op25/gr-op25_repeater/lib/dmr_bs_tx_bb_impl.cc
  2. 2
      op25/gr-op25_repeater/lib/nxdn_tx_sb_impl.cc
  3. 2
      op25/gr-op25_repeater/lib/ysf_tx_sb_impl.cc

@ -80,7 +80,7 @@ static bool crc8_ok(const uint8_t bits[], unsigned int len) {
return (crc == crc8(bits,len));
}
static inline int store_i(int reg, uint8_t val[], int len) {
static inline void store_i(int reg, uint8_t val[], int len) {
for (int i=0; i<len; i++){
val[i] = (reg >> (len-1-i)) & 1;
}

@ -55,7 +55,7 @@ static inline void print_result(char title[], const uint8_t r[], int len) {
}
#endif
static inline int store_i(int reg, uint8_t val[], int len) {
static inline void store_i(int reg, uint8_t val[], int len) {
for (int i=0; i<len; i++){
val[i] = (reg >> (len-1-i)) & 1;
}

@ -52,7 +52,7 @@ static inline void print_result(char title[], const uint8_t r[], int len) {
}
#endif
static inline int store_i(int reg, uint8_t val[], int len) {
static inline void store_i(int reg, uint8_t val[], int len) {
for (int i=0; i<len; i++){
val[i] = (reg >> (len-1-i)) & 1;
}

Loading…
Cancel
Save