Skip to content
Snippets Groups Projects
Commit a3f1aa0c authored by rmackay9's avatar rmackay9
Browse files

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

parent 00279c6d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment