Add style check matching RP2040 core (#740)
Will let us backport the BackgroundAudio patches to libhelix easier and clean up some ugly formatting we've let develop.
This commit is contained in:
1 parent
62dd23a74a
commit
f9e72dbb21
434 files changed
+94604
-93082
No files matched your search
@@ -4,10 +4,10 @@ void setup() {}
|
||||
void loop() {}
|
||||
#else
|
||||
#ifdef ESP32
|
||||
#include <WiFi.h>
|
||||
#include "SPIFFS.h"
|
||||
#include <WiFi.h>
|
||||
#include "SPIFFS.h"
|
||||
#else
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <ESP8266WiFi.h>
|
||||
#endif
|
||||
#include "AudioFileSourceSPIFFS.h"
|
||||
#include "AudioGeneratorOpus.h"
|
||||
@@ -19,9 +19,8 @@ AudioGeneratorOpus *opus;
|
||||
AudioFileSourceSPIFFS *file;
|
||||
AudioOutputI2S *out;
|
||||
|
||||
void setup()
|
||||
{
|
||||
WiFi.mode(WIFI_OFF);
|
||||
void setup() {
|
||||
WiFi.mode(WIFI_OFF);
|
||||
Serial.begin(115200);
|
||||
delay(1000);
|
||||
SPIFFS.begin();
|
||||
@@ -34,10 +33,11 @@ void setup()
|
||||
opus->begin(file, out);
|
||||
}
|
||||
|
||||
void loop()
|
||||
{
|
||||
void loop() {
|
||||
if (opus->isRunning()) {
|
||||
if (!opus->loop()) opus->stop();
|
||||
if (!opus->loop()) {
|
||||
opus->stop();
|
||||
}
|
||||
} else {
|
||||
Serial.printf("Opus done\n");
|
||||
delay(1000);
|
||||
|
||||
Reference in new issue
Block a user