ComIntCmd_Codec/ComIntCodecSave.c

19 lines
551 B
C

#include "XfcArray.h"
#include "XfcProtResponseCodes.h"
#include "AudioCodec.h"
#include "ComIntCodec.h"
//
// Created by zemon on 30.10.24.
//
static uint8_t XfcProtMethod_CodecSaveConf(tXfcArray *request, tXfcArray *response, tXfcCodec *env) {
AudioCodec_DumpConf(env->audioCodec, env->volumeLevel);
return XFC_TRANSPORT_PROTOCOL_RESPONSE_RESULT_OK;
}
uint8_t XfcProtMethod_CodecSave(tXfcArray *request, tXfcArray *response, tXfcCodec *env) {
uint8_t result = XfcProtMethod_CodecSaveConf(request, response, env);
return result;
}