X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Fsd.h;h=368e0d4fff975d6d375257004ed01c1f2f3e4fca;hb=dbc93a323bf913a9f5422b93ac59b828819a97db;hp=a0ca1d42dfd8a79493879d605a7a6409bd0e771c;hpb=3715319745d93d6f552b72a5321e8dc3b595a96d;p=bertos.git diff --git a/bertos/drv/sd.h b/bertos/drv/sd.h index a0ca1d42..368e0d4f 100644 --- a/bertos/drv/sd.h +++ b/bertos/drv/sd.h @@ -65,8 +65,10 @@ bool sd_initUnbuf(Sd *sd, KFile *ch); bool sd_initBuf(Sd *sd, KFile *ch); #if CONFIG_SD_OLD_INIT - #warning "Deprecated: this API will be removed in the next major release," - #warning "please disable CONFIG_SD_OLD_INIT and pass explicitly the SD context to sd_init()." + #if !(ARCH & ARCH_NIGHTTEST) + #warning "Deprecated: this API will be removed in the next major release," + #warning "please disable CONFIG_SD_OLD_INIT and pass explicitly the SD context to sd_init()." + #endif /** * Initializes the SD driver.