Skip to content
Snippets Groups Projects
Unverified Commit 7c54c4ed authored by Roxy-3D's avatar Roxy-3D Committed by GitHub
Browse files

Tiny improvement to M7219

The registers within the Max7219 can get corrupted a number of ways.  This allows the Max7219 to be reset and fully initialized.
And...  it also allows the user to see the initialization pattern.
parent a65d15c9
Branches
Tags
Loading
......@@ -39,7 +39,7 @@
*/
void GcodeSuite::M7219() {
if (parser.seen('I'))
for (uint8_t r = 0; r < 8; r++) Max7219_Set_Row(r, 0);
Max7219_init();
else if (parser.seenval('R')) {
const uint8_t r = parser.value_int();
Max7219_Set_Row(r, parser.byteval('V'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment