Skip to content

Marco inputs occasionally doubling in Switch mode #1535

@maxwell1755

Description

@maxwell1755

Expected Behavior

Macros should behave consistently between each loop of the macro

Current Behavior

A programed macro will occasionally repeat an input, causing issues in situation that require a precise sequence of inputs. For example, a macro that is programmed to execute the inputs [plus, left, A, A] will occasionally go [plus, plus, left, A, A]

Context

I was trying to make a macro to help me shiny hunt in the new Pokémon game on switch 2. In this game, it can be done simply by quick traveling to the same spot over and over, so all I need it to do is open the map, move the cursor slightly left, and then press the A button twice.
The macro I made works about 70% of the time, but the rest of the time one or more inputs got doubled. For example, it would press plus to open the map, then immediately press plus again to close it, or move the cursor left to the quick travel location, then move left again, moving the cursor away from the desired location.
I can't be certain, but it seems to happen after the "release and wait ___ frames". So a macro that would press A for 5 frames, wait for 30 frames, then press B for 5 frames, might instead press A for 5 frames, wait for 30 frames, press A for 5 frames, press B for 5 frames. Like I said though, I haven't done extensive testing of this.

Version
Pico-W (GP2040-CE_0.7.11_PicoW.uf2)
Current: v0.7.11
Latest: v0.7.11
Raspberry pi w
https://www.amazon.com/dp/B0B72GV3K3

Steps to Reproduce

  1. create a new macro with activation mode "toggle"
  2. enter the following into the "advanced" section
    [{"buttonMask":512,"duration":83330,"waitDuration":333320},{"buttonMask":262144,"duration":83330,"waitDuration":333320},{"buttonMask":2,"duration":83330,"waitDuration":799968},{"buttonMask":2,"duration":83330,"waitDuration":3749850}]
  3. run the macro in an environment where the inputs can be closely observed, preferably in Nintendo Switch mode, you should see inputs occasionally being repeated

Screenshots & Files

Please include any relevant screenshots, photos/recordings, or files here.

Here's a video of it working successfully once, then double-pressing plus

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in the firmware - Something is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions