1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-14 06:23:07 +01:00

directly use SemaphoreHandle_t as pointer

This commit is contained in:
andreas
2024-11-24 16:16:35 +01:00
parent 8cb012eac0
commit d33592cfdf
5 changed files with 29 additions and 28 deletions

View File

@@ -156,11 +156,11 @@ class ExampleWebData{
vSemaphoreDelete(lock);
}
void set(int v){
GWSYNCHRONIZED(&lock);
GWSYNCHRONIZED(lock);
data=v;
}
int get(){
GWSYNCHRONIZED(&lock);
GWSYNCHRONIZED(lock);
return data;
}
};