This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Program Integration

I am currently trying to integrate two separate programs (Bluetooth, NFC). They work individually with separate initiation functions. But when I integrate them, the initiate functions are only allowing one of them to work at a time.

main(){

BluetoothInit();

NFCInit();

while(1)
{

NFCIdleLoop();

//BluetoothIdleLoop():

}}

This will allow the NFC code to work correctly, but if you switch the order of the init functions so that the Bluetooth is the last init function than it wont work. If you comment out the NFC init function then it will work.

I am guessing this means that the NFC code changes some of the settings that the Bluetooth code doesn't reset.

I was wondering if there is a way to change the settings back to default.

**Attention** This is a public forum