i'm trying to receive multiple characters and store them in a char array. but mcu doesn't know how many characters will be received. how to write code to disable UCA0RX interrupt if no characters are received further.
if i know two char will be received i can use "strlen". but when the length of char received is unknown, how to disable UCA0RX interrupt if no char are further received?
for example:
char string1[];
string1[i++] = UCA0RXBUF;