forked from Mirrors/usk
Update misc.c
This commit is contained in:
parent
21dcad79d5
commit
559d480abc
1 changed files with 6 additions and 3 deletions
7
misc.c
7
misc.c
|
|
@ -73,8 +73,11 @@ void halt_with_error(uint32_t err, uint32_t bits)
|
||||||
pio_set_sm_mask_enabled(pio1, 0xF, false);
|
pio_set_sm_mask_enabled(pio1, 0xF, false);
|
||||||
set_sys_clock_khz(48000, true);
|
set_sys_clock_khz(48000, true);
|
||||||
vreg_set_voltage(VREG_VOLTAGE_0_95);
|
vreg_set_voltage(VREG_VOLTAGE_0_95);
|
||||||
put_pixel(0);
|
if (bits != 1)
|
||||||
sleep_ms(PAUSE_BEFORE);
|
{
|
||||||
|
put_pixel(0);
|
||||||
|
sleep_ms(PAUSE_BEFORE);
|
||||||
|
}
|
||||||
for(int j = 0; j < CODE_REPEATS; j++)
|
for(int j = 0; j < CODE_REPEATS; j++)
|
||||||
{
|
{
|
||||||
for(int i = 0; i < bits; i++)
|
for(int i = 0; i < bits; i++)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue