| 163 | } |
| 164 | |
| 165 | static void PADOriginUpdateCallback(s32 chan, u32 error, OSContext* context) |
| 166 | { |
| 167 | if (!(EnabledBits & (PAD_CHAN0_BIT >> chan))) |
| 168 | { |
| 169 | return; |
| 170 | } |
| 171 | |
| 172 | if (!(error & |
| 173 | (SI_ERROR_UNDER_RUN | SI_ERROR_OVER_RUN | SI_ERROR_NO_RESPONSE | SI_ERROR_COLLISION))) |
| 174 | { |
| 175 | UpdateOrigin(chan); |
| 176 | } |
| 177 | |
| 178 | if (error & SI_ERROR_NO_RESPONSE) |
| 179 | { |
| 180 | PADDisable(chan); |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | static void PADProbeCallback(s32 chan, u32 error, OSContext* context) |
| 185 | { |
nothing calls this directly
no test coverage detected