Seems there is a gremlin in the soup ā¦
extern int ciis4_readadc(uint8_t adc) { char buf[9]; int val; if (adc > 3) { return -1; } snprintf(buf, 9, "EXT_ADC%i", adc); le_adc_ReadValue(buf, &val);
Or using CM
cm adc read EXT_ADC0 Read EXT_ADC0 failed. May 7 23:08:35 swi-mdm9x15 user.err Legato: =ERR= | modemDaemon[526]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 781 | Sending QMI_SWI_M2M_ADC_READ_RESP_V01 failed: rc=-49 (x), resp.result=0.[0x00], resp.error=0.[0x00] May 7 23:08:35 swi-mdm9x15 user.err Legato: =ERR= | modemDaemon[526]/le_pa T=main | pa_adc_qmi.c pa_adc_ReadValue() 151 | Failed to read ADC.0 (channel.10)