Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RE: how to send a negative number using SimpliciTI?

$
0
0

Hi, thanks for the reply!

I tried to cast the ADCH before sending it over the radio, using the following code,

uint8_t uADCH = (uint8_t) ADCH;

SMPL_Send (linkID, &uADCH, 1);

But did not seem to work.

I tried the following way, y = static_cast<unsigned char>(x), IAR does not support static_cast.

So how to cast it properly? Thanks!


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>