SICS-666 SICS returns the raw message from the spin flippers instead of a parsed field separated string.
This commit is contained in:
@@ -270,7 +270,7 @@ int RFAmpReading (Ascon *a)
|
|||||||
heat = opstate & 0x01;
|
heat = opstate & 0x01;
|
||||||
snprintf(replyStr, 128, "address=%c|type=%c|curr=%s|freq=%s|voltage=%s|K3=%d|K2=%d|K1=%d|O=%d|CC=%d|CV=%d|H=%d", \
|
snprintf(replyStr, 128, "address=%c|type=%c|curr=%s|freq=%s|voltage=%s|K3=%d|K2=%d|K1=%d|O=%d|CC=%d|CV=%d|H=%d", \
|
||||||
address, ctype, curr, freq, voltage, K3, K2, K1, outOn, CC, CV, heat);
|
address, ctype, curr, freq, voltage, K3, K2, K1, outOn, CC, CV, heat);
|
||||||
DynStringClear(a->wrBuffer);
|
DynStringClear(a->rdBuffer);
|
||||||
if (0 == DynStringConcatBytes(a->rdBuffer, replyStr, 128)) {
|
if (0 == DynStringConcatBytes(a->rdBuffer, replyStr, 128)) {
|
||||||
strcpy(errMsg, "ANSRFAMP: DynStringReplace failed:");
|
strcpy(errMsg, "ANSRFAMP: DynStringReplace failed:");
|
||||||
errNum = ENOMEM;
|
errNum = ENOMEM;
|
||||||
|
|||||||
Reference in New Issue
Block a user