/* check for timeout or input error*/
status = select (fd + 1, &input, NULL, NULL, &timeout);
/* check for timeout or input error*/
status = select (fd + 1, &input, NULL, NULL, &timeout);
/* We need to see the begin sequence first. When we receive `ESCAPE
* PKT_BEGIN', we set `package_buffer_pos' to zero to signal that
* the beginning of the package has been found. */
/* We need to see the begin sequence first. When we receive `ESCAPE
* PKT_BEGIN', we set `package_buffer_pos' to zero to signal that
* the beginning of the package has been found. */
* Power is at positions 247 and 248 (LSB first) in [10kW].
* Voltage is at positions 251 and 252 (LSB first) in [.1V].
*
* Power is at positions 247 and 248 (LSB first) in [10kW].
* Voltage is at positions 251 and 252 (LSB first) in [.1V].
*
+ ((int) package_buffer[247]));
*ret_voltage = 0.1 * (double) ((((int) package_buffer[252]) * 256)
+ ((int) package_buffer[251]));
+ ((int) package_buffer[247]));
*ret_voltage = 0.1 * (double) ((((int) package_buffer[252]) * 256)
+ ((int) package_buffer[251]));