2023-11-12 20:33:43 -04:00
|
|
|
#include "AP_EFI_config.h"
|
2022-09-04 04:15:49 -03:00
|
|
|
|
|
|
|
#if AP_EFI_SCRIPTING_ENABLED
|
|
|
|
|
2023-11-12 20:33:43 -04:00
|
|
|
#include "AP_EFI_Scripting.h"
|
|
|
|
|
|
|
|
|
2022-09-04 04:15:49 -03:00
|
|
|
// 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-09-30 22:28:30 -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-09-30 22:28:30 -03:00
|
|
|
return true;
|
2022-09-04 04:15:49 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif // AP_EFI_SCRIPTING_ENABLED
|