mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
AP_Curve: replace Serial.print with Serial.print_P to save 18 bytes of memory
This commit is contained in:
parent
00279c6d3a
commit
a3f1aa0c7b
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user