2022-09-04 04:15:49 -03:00
|
|
|
#include "AP_EFI_Scripting.h"
|
|
|
|
|
|
|
|
#if AP_EFI_SCRIPTING_ENABLED
|
|
|
|
|
|
|
|
// Called from frontend to update with the readings received by handler
|
|
|
|
void AP_EFI_Scripting::update()
|
|
|
|
{
|
|
|
|
// Nothing to do here
|
|
|
|
}
|
|
|
|
|
|
|
|
// handle EFI message from scripting
|
2022-10-01 19:00:05 -03:00
|
|
|
bool AP_EFI_Scripting::handle_scripting(const EFI_State &efi_state)
|
2022-09-04 04:15:49 -03:00
|
|
|
{
|
|
|
|
internal_state = efi_state;
|
|
|
|
copy_to_frontend();
|
2022-10-01 19:00:05 -03:00
|
|
|
return true;
|
2022-09-04 04:15:49 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // AP_EFI_SCRIPTING_ENABLED
|