action.c 679 B

1234567891011121314151617181920
  1. #include "quac.h"
  2. #include "item.h"
  3. #include "action_i.h"
  4. void action_tx(void* context, Item* item, FuriString* error) {
  5. // FURI_LOG_I(TAG, "action_run: %s : %s", furi_string_get_cstr(item->name), item->ext);
  6. if(!strcmp(item->ext, ".sub")) {
  7. action_subghz_tx(context, item->path, error);
  8. } else if(!strcmp(item->ext, ".ir")) {
  9. action_ir_tx(context, item->path, error);
  10. } else if(!strcmp(item->ext, ".rfid")) {
  11. action_rfid_tx(context, item->path, error);
  12. } else if(!strcmp(item->ext, ".qpl")) {
  13. action_qpl_tx(context, item->path, error);
  14. } else {
  15. FURI_LOG_E(TAG, "Unknown item file type! %s", item->ext);
  16. }
  17. }