Commit 9758748e authored by Stavros-Anastasios Charismiadis's avatar Stavros-Anastasios Charismiadis
Browse files

Fix feature negotiation in ServiceAPIDescription

parent 3ff9c0d7
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -104,7 +104,8 @@ class ServiceAPIDescription(Model):
        # current_app.logger.info(supp_feat_in_hex)
        # current_app.logger.info(supp_feat_in_hex)


        supp_feat_in_hex = supp_feat_in_hex & capif_supp_feat
        supp_feat_in_hex = supp_feat_in_hex & capif_supp_feat
        supp_feat_in_bin = bin(supp_feat_in_hex << (len(supp_feat) * 4 - len(bin(supp_feat_in_hex)[2:])))[2:]
        # supp_feat_in_bin = bin(supp_feat_in_hex << (len(supp_feat) * 4 - len(bin(supp_feat_in_hex)[2:])))[2:]
        supp_feat_in_bin = bin(supp_feat_in_hex)[2:].zfill(len(supp_feat) * 4)


        return {
        return {
            "VendorExt": True if supp_feat_in_bin[0] == "1" else False,
            "VendorExt": True if supp_feat_in_bin[0] == "1" else False,