Move encoder_read to common location (#9003)

This commit is contained in:
Joel Challis authored and GitHub committed 2020-06-03 00:54:53 +01:00
commit d17572b125
3 files changed
+11 -18

No files matched your search

+1 -7
View File
@@ -24,10 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config.h"
#include "transport.h"
#ifdef ENCODER_ENABLE
# include "encoder.h"
#endif
#define ERROR_DISCONNECT_COUNT 5
#define ROWS_PER_HAND (MATRIX_ROWS / 2)
@@ -264,9 +260,7 @@ void matrix_post_scan(void) {
matrix_scan_quantum();
} else {
transport_slave(matrix + thisHand);
#ifdef ENCODER_ENABLE
encoder_read();
#endif
matrix_slave_scan_user();
}
}