23 lines
455 B
C
Executable File
23 lines
455 B
C
Executable File
//
|
|
// Created by cfif on 17.12.22.
|
|
//
|
|
|
|
#include "AtGsmErrorLogLevel.h"
|
|
#include "AtCmdCommonProtected.h"
|
|
|
|
AtCommandResult AtGsmSetOpenAudioLoop(tAtCmd *env, bool value) {
|
|
AtCmdPrepare(env);
|
|
|
|
AtCmdTxClear(env);
|
|
AtCmdTxAddStatic(env, "AT#OAP=");
|
|
|
|
if (value) {
|
|
AtCmdTxAddDecimalInt(env, 1, 1);
|
|
} else {
|
|
AtCmdTxAddDecimalInt(env, 0, 1);
|
|
}
|
|
|
|
AtCmdTxSendLn(env);
|
|
|
|
return AtCmdOkErrAnswer(env, env->stdRxTimeout);
|
|
} |