diff --git a/syringefilled.cpp b/syringefilled.cpp index daa7ed3b8438822f4b0f33f86df609536636b19f..6d5693d39d966d78761857c3348ac72e40efeed2 100644 --- a/syringefilled.cpp +++ b/syringefilled.cpp @@ -275,7 +275,33 @@ bool SyringeFilled :: check_configuration() } - - - +void SyringeFilled :: show_configuration() +/*** +-Argument : / +-Return : / +-Action : Displays syringe filled attributes +***/ +{ + Motor::showConfiguration(); + + auto step = whereStep(); + + Serial.printf("# push clockwise: %s\n" + "# diameter: %g mm\n" + "# capacity: %g uL\n" + "# rate: %g uL/s = %g mm/s\n" + "# volume remaining: %g uL (target)\n" + "# direction: %s\n" + "# emergency: %d\n" + "# current position: %g mm\n", + get_clockwise_equals_push()? "yes": "no", + get_id_syringe()->get_internal_diameter_mm(), + get_id_syringe()->get_total_volume_mL(), + get_exchange_throughput_uL_per_sec(), + volume_to_distance(get_exchange_throughput_uL_per_sec(), get_id_syringe()), + get_remaining_volume_mL(), + get_push()? "infuse": "withdraw", + get_emergency(), + stepToMm(step)); +}