Skip to content

Commit

Permalink
Added gain factor to serial debug output #featureadd
Browse files Browse the repository at this point in the history
  • Loading branch information
pyr0ball committed Aug 29, 2019
1 parent 952a1cd commit fd17249
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/pP_serial.h
Expand Up @@ -160,6 +160,29 @@ void serialReply() {
Serial.print(" ");
Serial.println(senseInt);

Serial.print("Gain Factor:");
Serial.print(GAIN_FACTOR);
switch (GAIN_FACTOR) {
case 0:
Serial.println(" 3x");
break;
case 1:
Serial.println(" 3.5x");
break;
case 2:
Serial.println(" 4.33x");
break;
case 3:
Serial.println(" 6x");
break;
case 4:
Serial.println(" 11x");
break;
default:
Serial.println(" INVALID");
break;
}

#endif

Serial.print("Delay:");
Expand Down

0 comments on commit fd17249

Please sign in to comment.