DataFlash: remove DataFlash.Log_Write_Message_P()

This commit is contained in:
Lucas De Marchi 2015-10-26 09:24:30 -02:00 committed by Randy Mackay
parent 4ab9821624
commit b52d1cfabb
2 changed files with 0 additions and 13 deletions

View File

@ -107,7 +107,6 @@ public:
bool Log_Write_MavCmd(uint16_t cmd_total, const mavlink_mission_item_t& mav_cmd);
void Log_Write_Radio(const mavlink_radio_t &packet);
bool Log_Write_Message(const char *message);
bool Log_Write_Message_P(const prog_char_t *message);
void Log_Write_Camera(const AP_AHRS &ahrs, const AP_GPS &gps, const Location &current_loc);
void Log_Write_ESC(void);
void Log_Write_Airspeed(AP_Airspeed &airspeed);

View File

@ -1060,18 +1060,6 @@ bool DataFlash_Class::Log_Write_Message(const char *message)
return WriteCriticalBlock(&pkt, sizeof(pkt));
}
// Write a text message to the log
bool DataFlash_Class::Log_Write_Message_P(const prog_char_t *message)
{
struct log_Message pkt = {
LOG_PACKET_HEADER_INIT(LOG_MESSAGE_MSG),
time_us : hal.scheduler->micros64(),
msg : {}
};
strncpy(pkt.msg, message, sizeof(pkt.msg));
return WriteCriticalBlock(&pkt, sizeof(pkt));
}
// Write a POWR packet
void DataFlash_Class::Log_Write_Power(void)
{