Archived
1
0

Fixing default pixel test mode to use rainbox

This commit is contained in:
Jacob Alexander 2016-02-25 23:24:14 -08:00
parent 5ceecce042
commit 62ba0c558b

View File

@ -2614,13 +2614,11 @@ inline void Pixel_process()
case PixelTest_Pixel_Test: case PixelTest_Pixel_Test:
// Start from the top of the Animation Stack // Start from the top of the Animation Stack
// TODO // TODO
dbug_print("YSSS");
// XXX Temp - Play rainbow // XXX Temp - Play rainbow
Pixel_pixelProcess( rainbow_frames[rainbow_pos], rainbow_framesizes[rainbow_pos] ); Pixel_pixelProcess( rainbow_frames[rainbow_pos], rainbow_framesizes[rainbow_pos] );
rainbow_pos++; rainbow_pos++;
Pixel_testMode = PixelTest_Off;
if ( rainbow_pos >= sizeof( rainbow_frames ) / 2 ) if ( rainbow_pos > 33 )
{ {
rainbow_pos = 0; rainbow_pos = 0;
goto pixel_process_done; goto pixel_process_done;
@ -2630,22 +2628,6 @@ inline void Pixel_process()
break; break;
} }
// Start from the top of the Animation Stack
// TODO
/*
// XXX Temp - Play rainbow
Pixel_pixelProcess( rainbow_frames[rainbow_pos], rainbow_framesizes[rainbow_pos] );
rainbow_pos++;
Pixel_testMode = PixelTest_Off;
if ( rainbow_pos >= sizeof( rainbow_framesizes ) / 2 )
{
rainbow_pos = 0;
}
*/
pixel_process_done: pixel_process_done:
// Frame is now ready to send // Frame is now ready to send
Pixel_FrameState = FrameState_Ready; Pixel_FrameState = FrameState_Ready;
@ -2661,7 +2643,8 @@ inline void Pixel_setup()
Pixel_FrameState = FrameState_Update; Pixel_FrameState = FrameState_Update;
// Disable test modes by default, start at position 0 // Disable test modes by default, start at position 0
Pixel_testMode = PixelTest_Off; Pixel_testMode = PixelTest_Pixel_Test; // TODO Remove when better default available
//Pixel_testMode = PixelTest_Off;
// Clear animation stack // Clear animation stack
Pixel_AnimationStack.size = 0; Pixel_AnimationStack.size = 0;