AP_Curve: replace Serial.print with Serial.print_P to save 18 bytes of memory

This commit is contained in:
rmackay9 2012-10-22 16:40:57 +09:00
parent 00279c6d3a
commit a3f1aa0c7b

View File

@ -129,13 +129,13 @@ T AP_Curve<T,SIZE>::get_y( T x )
template <class T, uint8_t SIZE>
void AP_Curve<T,SIZE>::dump_curve()
{
Serial.println("Curve:");
Serial.println_P(PSTR("Curve:"));
for( uint8_t i = 0; i<_num_points; i++ ){
Serial.print("x:");
Serial.print_P(PSTR("x:"));
Serial.print(_x[i]);
Serial.print("\ty:");
Serial.print_P(PSTR("\ty:"));
Serial.print(_y[i]);
Serial.print("\tslope:");
Serial.print_P(PSTR("\tslope:"));
Serial.print(_slope[i],4);
Serial.println();
}