v1.0.0-rc.69
This commit is contained in:
@@ -441,6 +441,19 @@ inline void CBOR_ENC_START_USER_DATA(CborEncoder& encoder, const char* key,
|
||||
j["sample_temperature_K"] = message.sample_temperature_K.value();
|
||||
if (message.file_format.has_value())
|
||||
j["file_format"] = static_cast<int>(message.file_format.value());
|
||||
|
||||
switch(message.indexing_algorithm) {
|
||||
case IndexingAlgorithmEnum::FFBIDX:
|
||||
j["indexing_algorithm"] = "ffbidx";
|
||||
break;
|
||||
case IndexingAlgorithmEnum::FFT:
|
||||
j["indexing_algorithm"] = "fft";
|
||||
break;
|
||||
default:
|
||||
j["indexing_algorithm"] = "none";
|
||||
break;
|
||||
}
|
||||
|
||||
auto str = j.dump();
|
||||
|
||||
CBOR_ENC(encoder, key, str);
|
||||
|
||||
Reference in New Issue
Block a user