X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=main.c;h=ae9d1e193855eefbe52532ad827c3f8e620cad19;hb=be367d7f046a080f1575ac4e918a94dfad24fa73;hp=637879f2cab0c18349df39617866dc8eea61c4fe;hpb=8584c7dd3bf9ad3362f285f065d66c8524340ef4;p=rgblamp.git diff --git a/main.c b/main.c index 637879f..ae9d1e1 100644 --- a/main.c +++ b/main.c @@ -264,5 +264,8 @@ int main(void) /* Process tasks forever */ user_tasks(1); + + /* Prevent return from main, which causes a device reset */ + while (1); }