message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
windows: Fix an oops in a test causing AppVeyor to fail. | @@ -357,7 +357,7 @@ class TestBadImport < TestCase
# Don't check preloaded packages for slashed paths.
var message = """\
- SyntaxError: Cannot import 'abc/def':\n \
+ SyntaxError: Cannot import 'abc\/def':\n \
from [test]:1:\n\
"""
|
p9dsu: change esel command from AMI to IBM 0x3a. | @@ -38,13 +38,18 @@ static bool p9dsu_probe(void)
return true;
}
+static const struct bmc_platform astbmc_smc = {
+ .name = "SMC",
+ .ipmi_oem_partial_add_esel = IPMI_CODE(0x3a, 0xf0),
+};
+
DECLARE_PLATFORM(p9dsu) = {
.name = "p9dsu",
.probe = p9dsu_probe,
.init = astbmc_init,
.start_preload_resource = flash_start_pre... |
test(UART): fix uart tx with ringbuffer test fail issue | @@ -292,7 +292,8 @@ TEST_CASE("uart tx with ringbuffer test", "[uart]")
.data_bits = UART_DATA_8_BITS,
.parity = UART_PARITY_DISABLE,
.stop_bits = UART_STOP_BITS_1,
- .flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
+ .flow_ctrl = UART_HW_FLOWCTRL_CTS_RTS,
+ .rx_flow_ctrl_thresh = 120,
.source_clk = UART_SCLK_APB,
};
TEST_ESP_OK... |
native-aliases: don't replace simde_mm_loadu_epi*
GCC doesn't currently implement those functions. | @@ -19,7 +19,7 @@ if [ ! -e iig.xml ]; then
curl "https://software.intel.com/sites/landingpage/IntrinsicsGuide/files/data-${VERSION}.xml" > iig.xml
fi
-PATTERN="$(xmllint --xpath '//intrinsic/@name' iig.xml | grep -Po '(?<=")[^"]+' | xargs printf '%s|' | rev | cut -c 2- | rev)"
+PATTERN="$(xmllint --xpath '//intrinsic/... |
Fix accidental free caused by a merge earlier | @@ -304,9 +304,6 @@ coap_notify_observers(oc_resource_t *resource,
if (m) {
os_mbuf_free_chain(m);
}
- if (m) {
- os_mbuf_free_chain(m);
- }
return num_observers;
}
/*---------------------------------------------------------------------------*/
|
vcl: fix vlsh conversion error
vlsh may not belong to the current vcl worker.
Type: fix | @@ -967,9 +967,7 @@ assign_cert_key_pair (vls_handle_t vlsh)
return -1;
ckp_len = sizeof (ldp->ckpair_index);
- return vppcom_session_attr (vlsh_to_session_index (vlsh),
- VPPCOM_ATTR_SET_CKPAIR, &ldp->ckpair_index,
- &ckp_len);
+ return vls_attr (vlsh, VPPCOM_ATTR_SET_CKPAIR, &ldp->ckpair_index, &ckp_len);
}
int
|
flash_fp_mcu: Remove coachz driver gpio override hack
BRANCH=none
TEST=# Tested many times using flash_fp_mcu --hello | @@ -289,14 +289,6 @@ flash_fp_mcu_stm32() {
warn_gpio "${gpio_nrst}" 0 \
"WARNING: One of the drivers changed NRST pin state on bind attempt."
- # TODO(b/179530529): Remove this hack when the drivers on strongbad stop
- # setting the gpio states.
- if [[ "${PLATFORM_NAME}" == "strongbad" ]]; then
- echo "# Fixing GPIOs... |
Fix some comments in fmgr.c
Oversight in
Author: Hou Zhijie
Discussion: | @@ -288,14 +288,11 @@ fmgr_symbol(Oid functionId, char **mod, char **fn)
Datum prosrcattr;
Datum probinattr;
- /* Otherwise we need the pg_proc entry */
procedureTuple = SearchSysCache1(PROCOID, ObjectIdGetDatum(functionId));
if (!HeapTupleIsValid(procedureTuple))
elog(ERROR, "cache lookup failed for function %u", func... |
Implement green color for console data received over the com port | @@ -42,7 +42,7 @@ static uint8_t initialized = 0;
DWORD thread_id;
HANDLE thread_handle;
static void uart_thread(void* param);
-HANDLE com_port; /*!< COM port handle */
+volatile HANDLE com_port; /*!< COM port handle */
uint8_t data_buffer[0x1000]; /*!< Received data array */
/**
@@ -144,9 +144,13 @@ uart_thread(void* ... |
DOC: TLS compression is disabled by default | @@ -460,7 +460,7 @@ B<SessionTicket>: session ticket support, enabled by default. Inverse of
B<SSL_OP_NO_TICKET>: that is B<-SessionTicket> is the same as setting
B<SSL_OP_NO_TICKET>.
-B<Compression>: SSL/TLS compression support, enabled by default. Inverse
+B<Compression>: SSL/TLS compression support, disabled by defa... |
web-ui: require yajl plugin via cmake | find_program (NPM_EXECUTABLE "npm")
+list (FIND REMOVED_PLUGINS "yajl" yajl_index)
+if (NOT yajl_index EQUAL -1)
+ remove_tool (${tool} "yajl plugin not available")
+else ()
+
if (NOT NPM_EXECUTABLE)
remove_tool (${tool} "dependency manager 'npm' not found")
else ()
@@ -45,3 +50,6 @@ else ()
generate_manpage (kdb-run-$... |
fix cache plan when using auxiliary table | @@ -162,6 +162,11 @@ List *relation_remote_by_constraints(PlannerInfo *root, RelOptInfo *rel)
MemoryContextSwitchTo(old_mctx);
result = list_copy(result);
MemoryContextDelete(main_mctx);
+
+ /* when used auxiliary relation, don't cache plan */
+ if (context.hint)
+ root->glob->transientPlan = true;
+
return result;
}
|
platforms/romulus: Also support talos
The two are similar enough and I'd like to have a slot table for our
Talos.
Cc: Timothy Pearson | @@ -54,7 +54,8 @@ static const struct slot_table_entry romulus_phb_table[] = {
static bool romulus_probe(void)
{
- if (!dt_node_is_compatible(dt_root, "ibm,romulus"))
+ if (!dt_node_is_compatible(dt_root, "ibm,romulus") &&
+ !dt_node_is_compatible(dt_root, "rcs,talos"))
return false;
/* Lot of common early inits here *... |
dill: add scry endpoints for current line & cursor
This will let connecting clients get the rendering-relevant parts of the
current state of the session on demand. | ++ scry
|= {fur/(unit (set monk)) ren/@tas why/shop syd/desk lot/coin tyl/path}
^- (unit (unit cage))
- ?. ?=(%& -.why) ~
- =* his p.why
+ ::TODO don't special-case whey scry
+ ::
?: &(=(ren %$) =(tyl /whey))
=/ maz=(list mass)
:~ hey+&+hey.all
dug+&+dug.all
==
``mass+!>(maz)
- [~ ~]
+ :: only respond for the local ide... |
storage: on exit validate Chunk I/O context | @@ -284,8 +284,12 @@ void flb_storage_destroy(struct flb_config *ctx)
/* Destroy Chunk I/O context */
cio = (struct cio_ctx *) ctx->cio;
- cio_destroy(cio);
+ if (!cio) {
+ return;
+ }
+
+ cio_destroy(cio);
if (ctx->storage_bl_mem_limit) {
flb_free(ctx->storage_bl_mem_limit);
}
|
adding the ability to add streams to the pre-defined redis-benchmark tests
Added standard way to support xadd as one of the commands that can be run via redis-benchmarking tool | @@ -2030,6 +2030,12 @@ int main(int argc, char **argv) {
sdsfree(key_placeholder);
}
+ if (test_is_selected("xadd")) {
+ len = redisFormatCommand(&cmd,"XADD mystream%s * myfield %s", tag, data);
+ benchmark("XADD",cmd,len);
+ free(cmd);
+ }
+
if (!config.csv) printf("\n");
} while(config.loop);
|
fix error compile as pure C code by VS | @@ -64,11 +64,11 @@ static int luv_is_callable(lua_State* L, int index) {
}
static void luv_check_callable(lua_State* L, int index) {
+ const char *msg;
+ const char *typearg; /* name for the type of the actual argument */
if (luv_is_callable(L, index))
return;
- const char *msg;
- const char *typearg; /* name for the ... |
[docsbuild plugin] attempt to support config for yfm builder | @@ -23,6 +23,9 @@ def macro_calls_to_dict(unit, calls):
unit.message(['error', 'Invalid variables specification "{}": value expected to be in form %name%=%value% (with no spaces)'.format(arg)])
return None
+ if kv[1] == 'true':
+ kv[1] = 'yes'
+
return kv
return dict(filter(None, map(split_args, calls)))
@@ -50,14 +53,... |
Increased time for access point setup to 10 seconds | @@ -160,7 +160,7 @@ esp_ap_configure(const char* ssid, const char* pwd, uint8_t ch, esp_ecn_t ecn, u
ESP_MSG_VAR_REF(msg).msg.ap_conf.hid = hid;
ESP_MSG_VAR_REF(msg).msg.ap_conf.def = def;
- return espi_send_msg_to_producer_mbox(&ESP_MSG_VAR_REF(msg), espi_initiate_cmd, blocking, 1000); /* Send message to producer queu... |
remove redefinition 'mode_t' | @@ -25,8 +25,6 @@ typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
-typedef int mode_t;
-
typedef unsigned long clockid_t;
typedef int pid_t;
|
lpc11u35 - Invert led logic to match hardware
The lpc11u35 hdk, like the other hdks, has active low leds. This patch
updates the gpio driver to treat these leds as active low, so passing
in the value GPIO_LED_ON to gpio_set_*_led turns the led on rather
than off. | @@ -162,27 +162,27 @@ void gpio_init(void)
void gpio_set_hid_led(gpio_led_state_t state)
{
if (state) {
- LPC_GPIO->SET[PIN_DAP_LED_PORT] = PIN_DAP_LED;
- } else {
LPC_GPIO->CLR[PIN_DAP_LED_PORT] = PIN_DAP_LED;
+ } else {
+ LPC_GPIO->SET[PIN_DAP_LED_PORT] = PIN_DAP_LED;
}
}
void gpio_set_cdc_led(gpio_led_state_t state)... |
Examples: show catching specific exception | @@ -37,6 +37,8 @@ def example():
for key in keys:
try:
print(' %s: %s' % (key, codes_get(gid, key)))
+ except KeyValueNotFoundError as err:
+ print(' Key="%s" was not found: %s' % (key, err.msg))
except CodesInternalError as err:
print('Error with key="%s" : %s' % (key, err.msg))
|
Don't add default instrument when removing note | @@ -282,9 +282,8 @@ export const SongTracker = ({
editPatternCell("note")(
value === null ? null : value + octaveOffset * 12
);
- editPatternCell("instrument")(defaultInstrument);
-
if (value !== null) {
+ editPatternCell("instrument")(defaultInstrument);
setActiveField(activeField + ROW_SIZE * editStep);
}
};
|
clean up for mem_tg test | @@ -129,9 +129,6 @@ public:
tg_exe_->write32(tg_offset_+TG_ADDR_MODE_WR, /*TG_ADDR_INCR*/ 0x2);
tg_exe_->write32(tg_offset_+TG_ADDR_MODE_RD, /*TG_ADDR_INCR*/ 0x2);
- uint32_t rd = tg_exe_->read64(tg_offset_+TG_READ_COUNT);
-
- std::cout << "Rd=" << rd << std::endl;
return 0;
}
|
Support tunslip6 and serialdump with a single makefile | -all: tunslip6
+APPS = tunslip6 serialdump
+LIB_SRCS = tools-utils.c
+DEPEND = tools-utils.h
-CFLAGS += -Wall -Werror
+all: $(APPS)
-tunslip6: tools-utils.c tunslip6.c
+CFLAGS += -Wall -Werror -O2
+
+$(APPS) : % : %.c $(LIB_SRCS) $(DEPEND)
+ $(CC) $(CFLAGS) $< $(LIB_SRCS) -o $@
clean:
- rm -f *.o tunslip6
+ rm -f $(APP... |
Add assertions to _bt_update_posting().
Copy some assertions from _bt_form_posting() to its sibling function,
_bt_update_posting().
Discussion: | @@ -688,6 +688,9 @@ _bt_update_posting(BTVacuumPosting vacposting)
else
newsize = keysize;
+ Assert(newsize <= INDEX_SIZE_MASK);
+ Assert(newsize == MAXALIGN(newsize));
+
/* Allocate memory using palloc0() (matches index_form_tuple()) */
itup = palloc0(newsize);
memcpy(itup, origtuple, keysize);
@@ -721,6 +724,7 @@ _bt... |
arch/Kconfig : Add dependency for KREGIONx configs
CONFIG_KREGINOx_XXX configs are meaningful only when kernel heap is. | @@ -801,6 +801,7 @@ config RAM_REGIONx_HEAP_INDEX
config RAM_KREGIONx_START
string "An address or list of start address for kernel RAM region"
default "0x00000000,"
+ depends on MM_KERNEL_HEAP
---help---
The address or address list of the RAM regions.
If you want to use more than equal to two RAMs physically, or
@@ -81... |
jn516x example: compute sample_count on current timeslot timings rather than defaults | @@ -194,7 +194,7 @@ PROCESS_THREAD(node_process, ev, data)
if (host_found) {
/* Make sample count dependent on asn. After a disconnect, waveforms remain
synchronous. Use node_mac to create phase offset between waveforms in different nodes */
- sample_count = ((tsch_current_asn.ls4b/((1000/(TSCH_CONF_DEFAULT_TIMESLOT_LE... |
Wakeup: Early ROSC to ~48MHz.
Speed up MicroPython Pico W startup to init_priority(101) execution from ~160ms to ~32ms. | @@ -63,21 +63,28 @@ index 70dd3bb..b8c1ed0 100644
// (basically anything in aeabi that uses bootrom)
diff --git a/src/rp2_common/pico_standard_link/crt0.S b/src/rp2_common/pico_standard_link/crt0.S
-index b2992f6..80367da 100644
+index b2992f6..6091e70 100644
--- a/src/rp2_common/pico_standard_link/crt0.S
+++ b/src/rp2... |
Fix typo in doc.pl command-line help. | @@ -64,7 +64,7 @@ doc.pl [options]
--cache-only Only use the execution cache - don't attempt to generate it
--pre Pre-build containers for execute elements marked pre
--var Override defined variable
- --var-key Override defined variable and use in cache key
+ --key-var Override defined variable and use in cache key
--d... |
RTOS2: typo correction in cmsis_os2.h | /*
- * Copyright (c) 2013-2018 Arm Limited. All rights reserved.
+ * Copyright (c) 2013-2020 Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*
*
* ----------------------------------------------------------------------
*
- * $Date: 18. June 2018
+ * $Date: 30. April 2020
* $Revision: V2.1.3
*
*... |
Consider the domain of the splines in assert_equal_shape. | @@ -54,7 +54,7 @@ void
assert_equal_shape_eps(CuTest *tc, tsBSpline *s1, tsBSpline *s2, tsReal eps)
{
tsDeBoorNet net = ts_deboornet_init();
- tsReal *s1val = NULL, *s2val = NULL, dist;
+ tsReal min, max, knot, dist, *s1val = NULL, *s2val = NULL;
size_t k, dim;
tsStatus status;
@@ -66,17 +66,21 @@ assert_equal_shape_ep... |
refactor (docs, rng): Clarify RNG usage | @@ -13,16 +13,21 @@ extern "C" {
#endif
/**
- * @brief Enable an entropy source for RNG if RF is disabled
+ * @brief Enable an entropy source for RNG if RF subsystem is disabled
+ *
+ * @warning This function is not safe to use if any other subsystem is accessing the RF subsystem or
+ * the ADC at the same time!
*
* Th... |
RAND: ensure INT32_MAX is defined
This value is used to set DRBG_MAX_LENGTH | # include <openssl/ec.h>
# include <openssl/rand_drbg.h>
+# include "internal/numbers.h"
+
/* How many times to read the TSC as a randomness source. */
# define TSC_READ_COUNT 4
|
mesh: Fix model tree walk procedure
`bt_mesh_model_tree_walk()` was too simplistic and did not track visited
nodes which caused it to fall into infinite loop. Moreover the double
next jump could skip a level causing depth value to be invalid.
this is port of | @@ -804,23 +804,31 @@ void bt_mesh_model_tree_walk(struct bt_mesh_model *root,
{
struct bt_mesh_model *m = root;
uint32_t depth = 0;
+ /* 'skip' is set to true when we ascend from child to parent node.
+ * In that case, we want to skip calling the callback on the parent
+ * node and we don't want to descend onto a chil... |
Describe 0.11.1 release | # Themis ChangeLog
+## [0.11.1](https://github.com/cossacklabs/themis/releases/tag/0.11.1), April 1st 2019
+
+**TL;DR:** Rust-Themis can now be installed entirely from packages (repositories and crates.io), without building anything from source.
+
+_Code:_
+
+- **Rust**
+
+ - Improvements in lookup of core Themis libra... |
fix(jpg): swap high and low bytes when macro LV_COLOR_16_SWAP is 1 | @@ -766,7 +766,7 @@ static lv_res_t decoder_read_line(lv_img_decoder_t * decoder, lv_img_decoder_dsc
uint16_t col_16bit = (*cache++ & 0xf8) << 8;
col_16bit |= (*cache++ & 0xFC) << 3;
col_16bit |= (*cache++ >> 3);
-#if LV_BIG_ENDIAN_SYSTEM == 1
+#if LV_BIG_ENDIAN_SYSTEM == 1 || LV_COLOR_16_SWAP == 1
buf[offset++] = col_... |
config: restore FEATURES on the basic tab
A previous PR incorectly removed the hypervisor FEATURES options on the
basic tab because all options were advanced. One wasn't (IVSHMEM). | @@ -256,7 +256,7 @@ These settings can only be changed at build time.</xs:documentation>
<xs:complexType name="HVConfigType">
<xs:all>
<xs:element name="FEATURES" type="FeatureOptionsType">
- <xs:annotation acrn:title="Hypervisor features" acrn:views="advanced">
+ <xs:annotation acrn:title="Hypervisor features" acrn:vi... |
fix spinner audio | @@ -10,8 +10,8 @@ class HitsoundManager:
self.timingpoint = beatmap.timing_point
self.timingpoint_index = 0
self.spincooldown = 0
- self.prevspin = None
- self.prevbonusscore = None
+ self.prevspin = {}
+ self.prevbonusscore = {}
self.breakperiod_i = 0
self.sectionadded = False
@@ -95,13 +95,16 @@ class HitsoundManager... |
fix: replace BoatIotSdkDeInit(); with BoatFree(); in test_002InitWallet_0007SetNodeUrlFailureErrorNodeUrlFormat
fix the issue aitos-io#1050 | @@ -692,7 +692,7 @@ START_TEST(test_002InitWallet_0007SetNodeUrlFailureErrorNodeUrlFormat)
/* 2-2. verify the global variables that be affected */
ck_assert(wallet_ptr->network_info.node_url_ptr == NULL);
- BoatIotSdkDeInit();
+ BoatFree(wallet_ptr);
}
END_TEST
|
system/i2c/i2c_main.c: fix a backward comparison. Noted by Jakob Haufe. | @@ -365,7 +365,7 @@ int i2c_main(int argc, char *argv[])
g_i2ctool.addr = CONFIG_I2CTOOL_MINADDR;
}
- if (g_i2ctool.regaddr < CONFIG_I2CTOOL_MAXREGADDR)
+ if (g_i2ctool.regaddr > CONFIG_I2CTOOL_MAXREGADDR)
{
g_i2ctool.regaddr = 0;
}
|
py/objdict: Reword TODO about inlining mp_obj_dict_get to a note. | @@ -160,7 +160,7 @@ STATIC mp_obj_t dict_binary_op(mp_binary_op_t op, mp_obj_t lhs_in, mp_obj_t rhs_
}
}
-// TODO: Make sure this is inlined in dict_subscr() below.
+// Note: Make sure this is inlined in load part of dict_subscr() below.
mp_obj_t mp_obj_dict_get(mp_obj_t self_in, mp_obj_t index) {
mp_obj_dict_t *self =... |
webp_js/README.md,cosmetics: reflow some lines
after:
Update wasm instructions. | @@ -49,11 +49,11 @@ and then navigate to http://localhost:8080 in your favorite browser.
CMakeLists.txt is configured to build the WASM version when using the option
WEBP_BUILD_WEBP_JS=ON. The compilation step will assemble the files
-'webp_wasm.js' and 'webp_wasm.wasm' that you then need to copy to the
-webp_js/ direc... |
Fix incorrect last_joy value on game start causing initial movement when no input is pressed since GBDK2020v4 | #include "ScriptRunner.h"
UBYTE joy = 0;
-UBYTE last_joy;
-UBYTE recent_joy;
-UBYTE await_input;
+UBYTE last_joy = 0;
+UBYTE recent_joy = 0;
+UBYTE await_input = 0;
UBYTE input_wait = 0;
BankPtr input_script_ptrs[NUM_INPUTS];
UBYTE input_script_persist = 0;
|
[chainmaker][#436]modify test chain_id and org_id | @@ -70,13 +70,13 @@ static BOAT_RESULT param_init_check(BoatHlchainmakerTx* tx_ptr)
return BOAT_ERROR;
}
- result = strncmp(tx_ptr->client_para.chain_id, TEST_CHAINMAKER_CHAIN_ID, strlen(TEST_CHAINMAKER_CHAIN_ID));
+ result = strncmp(tx_ptr->wallet_ptr->node_info.chain_id_info, TEST_CHAINMAKER_CHAIN_ID, strlen(TEST_CHA... |
adding libpthread pthread_mutexattr_setpshared | @@ -88,7 +88,7 @@ GO(__pthread_mutexattr_init, iFp)
GO(pthread_mutexattr_init, iFp)
// pthread_mutexattr_setprioceiling
// pthread_mutexattr_setprotocol
-// pthread_mutexattr_setpshared
+GO(pthread_mutexattr_setpshared, iFpi)
// pthread_mutexattr_setrobust_np
GO(__pthread_mutexattr_settype, iFpi)
GO(pthread_mutexattr_s... |
Minor refectoring of refinement.c | @@ -119,8 +119,7 @@ static int search_equivalent_atom(const int atom_index,
const Symmetry *symmetry,
const double symprec);
static Symmetry *
-recover_symmetry_in_original_cell(const int frame[3],
- const Symmetry *prim_sym,
+recover_symmetry_in_original_cell(const Symmetry *prim_sym,
SPGCONST int t_mat[3][3],
SPGCONS... |
fixed a small issue with delayed update | @@ -1736,7 +1736,9 @@ static u16 updateFrame(Sprite* sprite, u16 status)
if ((status & (SPR_FLAG_AUTO_TILE_UPLOAD | SPR_FLAG_DISABLE_DELAYED_FRAME_UPDATE)) == SPR_FLAG_AUTO_TILE_UPLOAD)
{
// not enough DMA capacity to transfer sprite tile data ?
- if ((DMA_getQueueTransferSize() + (frame->tileset->numTile * 32)) > DMA_... |
Handle esp_tls_conn_read disconnection in ssl_read. Fixes
Closes | @@ -130,6 +130,9 @@ static int ssl_read(esp_transport_handle_t t, char *buffer, int len, int timeout
if (ret < 0) {
ESP_LOGE(TAG, "esp_tls_conn_read error, errno=%s", strerror(errno));
}
+ if (ret == 0) {
+ ret = -1;
+ }
return ret;
}
|
luci-app-cpufreq: fix governor setting | @@ -37,7 +37,7 @@ for _, policy_num in ipairs(string.split(policy_nums, " ")) do
governor = s:taboption(policy_num, ListValue, "governor" .. policy_num, translate("CPU Scaling Governor"))
for _, e in ipairs(governor_array) do
- if e ~= "" then governor:value(translate(e,string.upper(e))) end
+ if e ~= "" then governor:... |
web: fix micro -> patch version field rename | @@ -31,11 +31,11 @@ getVersions()
error(`are you sure you have libelektra and kdb installed?`);
process.exit(1);
} else {
- const { major, minor, micro } = versions.elektra;
- const versionSupported = major >= 0 && minor >= 9 && micro >= 0;
+ const { major, minor, patch } = versions.elektra;
+ const versionSupported = ... |
modpupdevices: experimental scaling of rgb
fw size +84 | @@ -156,8 +156,16 @@ ColorAndDistSensor
STATIC mp_obj_t pupdevices_ColorAndDistSensor_rgb(mp_obj_t self_in) {
pupdevices_ColorAndDistSensor_obj_t *self = MP_OBJ_TO_PTR(self_in);
pb_assert(pb_iodevice_set_mode(self->port, 6));
- // TODO: Scale each value to 0-100. Values for red should match reflection mode exactly, sca... |
process: fix wrong variable | @@ -209,7 +209,7 @@ int elektraProcessGet (Plugin * handle, KeySet * returned, Key * parentKey)
elektraInvoke2Args (contractHandle, "get", pluginContract, pluginParentKey);
elektraInvokeClose (contractHandle, pluginParentKey);
keyDel (pluginParentKey);
- if (ksGetSize (contract) == 0)
+ if (ksGetSize (pluginContract) =... |
Initializing local buffer ctx_impl field for correct release.
Uninitialized ctx_impl field may cause crash in application process.
To reproduce the issue, need to trigger shared memory buffer send error on
application side. In our case, send error caused by router process crash.
This issue was introduced in | @@ -3207,6 +3207,7 @@ nxt_unit_get_outgoing_buf(nxt_unit_ctx_t *ctx, nxt_unit_process_t *process,
mmap_buf->port_id = *port_id;
mmap_buf->process = process;
mmap_buf->free_ptr = NULL;
+ mmap_buf->ctx_impl = nxt_container_of(ctx, nxt_unit_ctx_impl_t, ctx);
nxt_unit_debug(ctx, "outgoing mmap allocation: (%d,%d,%d)",
(int... |
Fixed Build menu label missing ampersand | @@ -88,7 +88,7 @@ const template = [
}
},
{
- label: "Build & Run", accelerator: "CommandOrControl+6", click: () => {
+ label: "Build && Run", accelerator: "CommandOrControl+6", click: () => {
notifyListeners("section", "build");
}
},
|
upstream: on connection close, invalidate context | @@ -322,6 +322,8 @@ static int prepare_destroy_conn(struct flb_upstream_conn *u_conn)
if (u_conn->fd > 0) {
flb_socket_close(u_conn->fd);
+ u_conn->fd = -1;
+ u_conn->event.fd = -1;
}
/* remove connection from the queue */
|
[io] add the option to set the color of bodies when fixed color is used | @@ -137,8 +137,8 @@ class VViewOptions(object):
do not use vtk depth peeling
--maximum-number-of-peels= value
maximum number of peels when depth peeling is on
- --occlusion-ration= value
- occlusion-ration when depth peeling is on
+ --occlusion-ratio= value
+ occlusion-ratio when depth peeling is on
--normalcone-ratio ... |
modcustomdevices: handle uart zero length read
When no data is requested, perform no i/o and just return an empty byte array.
This way, the following won't fail in case there is no pending data:
>>> uart = UARTDevice(ev3.Port.S2, 115200, 3000)
>>> uart.read(uart.waiting()) | @@ -370,6 +370,12 @@ STATIC mp_obj_t customdevices_UARTDevice_read(size_t n_args, const mp_obj_t *pos
pb_assert(PBIO_ERROR_INVALID_ARG);
}
+ // If we don't need to read anything, return empty bytearray
+ if (len < 1) {
+ uint8_t none = 0;
+ return mp_obj_new_bytes(&none, 0);
+ }
+
// Read data into buffer
uint8_t *buf ... |
Fix Makefile arguments passed to MicroPython.
* In addition to the CFLAGS passed to control modules mpconfigport.h, the
Makefile needs its own arguments to enable/disable built-in modules.
* Fix the way arguments are passed to MicroPython's Makefile, so that it's
possible to enable/disable compiling code from the top l... | @@ -68,6 +68,7 @@ OMV_QSTR_DEFS = $(TOP_DIR)/$(OMV_DIR)/py/qstrdefsomv.h
ifeq ($(DEBUG), 1)
CFLAGS += -O0 -ggdb3
else
+DEBUG=0
CFLAGS += -O2 -ggdb3 -DNDEBUG
endif
@@ -117,11 +118,21 @@ MP_CFLAGS += -I$(TOP_DIR)/$(MICROPY_DIR)/ports/stm32/
MP_CFLAGS += -I$(TOP_DIR)/$(MICROPY_DIR)/ports/stm32/usbdev/core/inc/
MP_CFLAGS +... |
modupdater in releases | @@ -11,6 +11,9 @@ if errorlevel 1 (
SET dll=!filepath:.ual=.dll!
ECHO !dll!
copy "..\..\Ultimate-ASI-Loader\bin\x86\Release\dinput8.dll" !dll!
+ SET "mu=%%~dpF\scripts\modupdater.asi"
+ ECHO !mu!
+ copy "..\..\modupdater\bin\Release\modupdater.asi" !mu!
)
)
|
hv: destroy IOMMU domain after vpci_cleanup()
In partition mode, unassign_iommu_device() is called from vpci_cleanup(),
so when shutdown_vm() is called, unassign_iommu_device() could fail because
of "domain id mismatch" and DMAR is not cleared.
Also move destroy_ept() after the call to destroy_iommu_domain().
Acked-by:... | @@ -449,18 +449,19 @@ int32_t shutdown_vm(struct acrn_vm *vm)
ptdev_release_all_entries(vm);
- /* Free EPT allocated resources assigned to VM */
- destroy_ept(vm);
+ vpci_cleanup(vm);
/* Free iommu */
if (vm->iommu != NULL) {
destroy_iommu_domain(vm->iommu);
}
+ /* Free EPT allocated resources assigned to VM */
+ destr... |
usb: gurad 4way related functions | @@ -214,6 +214,7 @@ void get_quic(uint8_t *data, uint32_t len) {
break;
}
#endif
+#ifdef USE_SERIAL_4WAY_BLHELI_INTERFACE
case QUIC_VAL_BLHEL_SETTINGS: {
send_quic(QUIC_CMD_GET, QUIC_FLAG_STREAMING, encode_buffer, cbor_encoder_len(&enc));
@@ -235,6 +236,7 @@ void get_quic(uint8_t *data, uint32_t len) {
send_quic_header... |
adds +tap:to treap-order validation arm | ++ to :: queue engine
=| a/(tree) :: (qeu)
|@
+ ++ apt :: check correctness
+ ^- ?
+ ?~ a &
+ |- ^- ?
+ ?~ l.a &
+ ?~ r.a &
+ &((mor n.l.a n.r.a) $(a l.a) $(a r.a))
+ ::
++ bal
|- ^+ a
?~ a ~
|
Update WorkerThread.cpp
spelling and wording | @@ -128,8 +128,8 @@ namespace PAL_NS_BEGIN {
}
}
/* Either waited long enough or the task is still executing. Return:
- - true - if new item in progress is another new item
- - false - if the item in progress is still the item we were waiting on
+ * true - if item in progress is different than item (other task)
+ * fal... |
Set new define because of build failure | #define CFG_TUD_CDC_EP_BUFSIZE (TUD_OPT_HIGH_SPEED ? 512 : 64)
#endif
+#ifndef CFG_TUD_CDC_CLEAR_AT_CONNECTION
+ #define CFG_TUD_CDC_CLEAR_AT_CONNECTION 0
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
|
Macros: Add Doxygen comments for macro functions | #ifndef KDBMACROS_H
#define KDBMACROS_H
+/** Surround a value with double quotes */
#define ELEKTRA_QUOTE(x) #x
+/** Surround a **macro value** with double quotes */
#define ELEKTRA_STRINGIFY(x) ELEKTRA_QUOTE (x)
#if defined(__APPLE__)
|
detect buffer overflows in RleUncompress | @@ -117,6 +117,11 @@ rleUncompress (int inLength, int maxLength, const signed char in[], char out[])
if (0 > (maxLength -= count + 1))
return 0;
+ // check the input buffer is big enough to contain
+ // byte to be duplicated
+ if (inLength < 0)
+ return 0;
+
memset(out, *(char*)in, count+1);
out += count+1;
|
Make unknown psram package version more obvious | @@ -642,6 +642,9 @@ esp_err_t IRAM_ATTR psram_enable(psram_cache_mode_t mode, psram_vaddr_mode_t vad
ESP_EARLY_LOGI(TAG, "This chip is ESP32-D0WD");
psram_io.psram_clk_io = D0WD_PSRAM_CLK_IO;
psram_io.psram_cs_io = D0WD_PSRAM_CS_IO;
+ } else {
+ ESP_EARLY_LOGE(TAG, "Not a valid or known package id: %d", pkg_ver);
+ abo... |
bondo: removing debugging posts | @@ -154,7 +154,6 @@ static void bondo_proxy_pointer(t_bondo_proxy *x, t_gpointer *gp)
static void bondo_distribute(t_bondo *x, int startid,
t_symbol *s, int ac, t_atom *av, int doit)
{
- post("distribute");
t_atom *ap = av;
t_bondo_proxy **pp;
int id = startid + ac;
@@ -213,13 +212,11 @@ static void bondo_proxy_list(t_... |
Updated metadata config definition | +import { Resource } from "..";
import { AppName, Path, Patp } from "../lib";
export type MetadataUpdate =
@@ -65,11 +66,20 @@ export interface Metadata {
'date-created': string;
description: string;
title: string;
- config: { graph: string };
+ config: MetadataConfig;
picture: string;
hidden: boolean;
preview: boolean... |
Set version 2.0.0 | #ifndef __version_H__
#define __version_H__
-#define SPGLIB_MAJOR_VERSION 1
-#define SPGLIB_MINOR_VERSION 16
-#define SPGLIB_MICRO_VERSION 5
+#define SPGLIB_MAJOR_VERSION 2
+#define SPGLIB_MINOR_VERSION 0
+#define SPGLIB_MICRO_VERSION 0
#endif
|
Add input option for process or buffer | @@ -143,8 +143,13 @@ uart_thread(void* param) {
for (DWORD i = 0; i < bytes_read; i++) {
printf("%c", data_buffer[i]);
}
+
/* Send received data to input processing module */
+#if ESP_CFG_INPUT_USE_PROCESS
esp_input_process(data_buffer, (size_t)bytes_read);
+#else
+ esp_input(data_buffer, (size_t)bytes_read);
+#endif
/... |
Docs: Removed Windows11 again (too early to give definitive name for this) | @@ -60,7 +60,6 @@ Windows is automatically detected by OpenCore, so the basic `Windows` flavour wi
**Windows** icon is recommended, all others are optional.
- **Windows** - Microsoft Windows (auto-detected by OC; fallback: **HardDrive**)
- - **Windows11:Windows** - Microsoft Windows 11 (`Windows11.icns`)
- **Windows10:... |
Update ygdiff after | },
"ygdiff": {
"formula": {
- "sandbox_id": 505451223,
+ "sandbox_id": 567709191,
"match": "ygdiff"
},
"executable": {
|
Add a test for CT in TLSv1.3
This also tests the SERVERINFO2 file format. | @@ -126,6 +126,8 @@ $ENV{CTLOG_FILE} = srctop_file("test", "ct", "log_list.conf");
[TLSProxy::Message::MT_CERTIFICATE, TLSProxy::Message::EXT_STATUS_REQUEST,
checkhandshake::STATUS_REQUEST_SRV_EXTENSION],
+ [TLSProxy::Message::MT_CERTIFICATE, TLSProxy::Message::EXT_SCT,
+ checkhandshake::SCT_SRV_EXTENSION],
[0,0,0]
);
... |
Fix incorrect default options window setting | @@ -129,7 +129,7 @@ VOID PhAddDefaultSettings(
PhpAddStringSetting(L"NetworkTreeListColumns", L"");
PhpAddStringSetting(L"NetworkTreeListSort", L"0,1"); // 0, AscendingSortOrder
PhpAddIntegerSetting(L"NoPurgeProcessRecords", L"0");
- PhpAddIntegerPairSetting(L"OptionsWindowPosition", L"200,200");
+ PhpAddIntegerPairSet... |
comm point write and read structure members. | @@ -87,6 +87,9 @@ typedef int comm_point_callback_type(struct comm_point*, void*, int,
#define NETEVENT_CAPSFAIL -3
/** to pass done transfer to callback function; http file is complete */
#define NETEVENT_DONE -4
+/** to pass write of the write packet is done to callback function
+ * used when tcp_write_and_read is en... |
Update arch/sparc/include/spinlock.h | /* The Type of a spinlock.
*
- * This must be a uint32_ becaue it will be set using CASA instruction.
+ * This must be a uint32_ because it will be set using CASA instruction.
* That instruction atomically Compare the 32-bitvalues in the register
* and memory, if its current value is the expected one. swap the values
*... |
mfg_util: Fix unnecessary csv files creation for values with REPEAT tags | @@ -264,10 +264,10 @@ def set_repeat_value(total_keys_repeat, keys, csv_file, target_filename):
if key_val_new[0][0] == key_repeated[0]:
val = key_val_pair[0][1]
row[index] = val
- csv_file_writer.writerow(row)
del key_repeated[0]
del key_val_new[0]
del key_val_pair[0]
+ csv_file_writer.writerow(row)
return target_file... |
[catboost/R] Fix S3 generic/method consistency warning | \alias{print.catboost.Pool}
\title{Print catboost.Pool}
\usage{
-\method{print}{catboost.Pool}(pool, ...)
+\method{print}{catboost.Pool}(x, ...)
}
\arguments{
-\item{pool}{a catboost.Pool object
+\item{x}{a catboost.Pool object
Default value: Required argument}
|
build/configs/rtl8721csm/loadable_apps : Enable prodconfig and Adjust wdog and timer
1) Enable prodconfig
2) Adjust wdog and timer
MAX_WDOGPARAMS : 2 -> 4
PREALLOC_WDOGS : 4 -> 32
WDOG_INTRESERVE : 0 -> 4
PREALLOC_TIMERS = 2 -> 8 | @@ -310,10 +310,10 @@ CONFIG_SYSTEM_TIME64=y
CONFIG_START_YEAR=2011
CONFIG_START_MONTH=12
CONFIG_START_DAY=6
-CONFIG_MAX_WDOGPARMS=2
-CONFIG_PREALLOC_WDOGS=4
-CONFIG_WDOG_INTRESERVE=0
-CONFIG_PREALLOC_TIMERS=2
+CONFIG_MAX_WDOGPARMS=4
+CONFIG_PREALLOC_WDOGS=32
+CONFIG_WDOG_INTRESERVE=4
+CONFIG_PREALLOC_TIMERS=8
#
# Task... |
update scope ps | @@ -460,6 +460,10 @@ Negative arguments are not allowed.
### ps
---
+Lists all scoped processes. This means processes whose functions AppScope is interposing (which means that the AppScope library was loaded, and the AppScope reporting thread is running, in those processes, too).
+
+Before AppScope 1.2.0:
+
Lists all p... |
Fix lpc17_40_serial.c:935:20: error: unused function 'lpc17_40_uart3config' | @@ -931,7 +931,7 @@ static inline void lpc17_40_uart2config(void)
};
#endif
-#ifdef CONFIG_LPC17_40_UART3
+#if defined(CONFIG_LPC17_40_UART3) && !defined(CONFIG_UART3_SERIAL_CONSOLE)
static inline void lpc17_40_uart3config(void)
{
uint32_t regval;
|
BugID:20099139: Exit with error if source is not existing | @@ -242,7 +242,7 @@ AOS_CPLUSPLUS_FLAGS += $(CPLUSPLUS_FLAGS)
$(eval PROCESSED_COMPONENTS += $(NAME))
$(eval TMP_SOURCES := $(sort $(subst $($(NAME)_LOCATION),,$(addprefix $($(NAME)_LOCATION),$($(NAME)_SOURCES) $($(NAME)_SOURCES-y)))))
$(eval $(NAME)_SOURCES := $(sort $(subst $($(NAME)_LOCATION),,$(wildcard $(addprefix... |
Check the return value of 'ZSTD_initDStream'
'49116f6d' fix the problem for 'ZSTD_initCStream', should check the value of
'ZSTD_initDStream' as well. | @@ -1342,7 +1342,9 @@ BufFileEndCompression(BufFile *file)
file->zstd_context->dctx = ZSTD_createDStream();
if (!file->zstd_context->dctx)
elog(ERROR, "out of memory");
- ZSTD_initDStream(file->zstd_context->dctx);
+ ret = ZSTD_initDStream(file->zstd_context->dctx);
+ if (ZSTD_isError(ret))
+ elog(ERROR, "failed to ini... |
path DOC missing doxygen for param | @@ -388,6 +388,7 @@ error:
* @param[in] lref Lref option.
* @param[in] format Format of the path.
* @param[in] prefix_data Format-specific data for resolving any prefixes (see ::ly_resolve_prefix).
+ * @param[in,out] unres Global unres to use.
* @param[out] mod Resolved module.
* @param[out] name Parsed node name.
* @p... |
README.md: update to indicate port merged back | -[](https://travis-ci.org/micropython/micropython) [](https://coveralls.io/r/micropython/micropython?branch=master)
-
The MicroPython project
====... |
[DeviceDrivers][SPI][spi_msd.c] fixed CSD Version 2.0 sector count calc. | * File : msd.c
* SPI mode SD Card Driver
* This file is part of RT-Thread RTOS
- * COPYRIGHT (C) 2006 - 2012, RT-Thread Development Team
+ * COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* 2012-02-... |
Fix timeout macro codegen | @@ -537,7 +537,7 @@ FORCEINLINE PLARGE_INTEGER PhTimeoutFromMilliseconds(
}
#define PhTimeoutFromMillisecondsEx(Milliseconds) \
- &(LARGE_INTEGER) { -(LONGLONG)UInt32x32To64((Milliseconds), PH_TIMEOUT_MS) }
+ &(LARGE_INTEGER) { .QuadPart = -(LONGLONG)UInt32x32To64(((ULONG)Milliseconds), PH_TIMEOUT_MS) }
FORCEINLINE NTS... |
Fix usage of id/uniqueId for device event | @@ -809,14 +809,15 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat
// Some items like state/buttonevent should fire events on set, not only change
if (parseFunction && parseFunction(r, item, ind, zclFrame) && item->lastSet() == item->lastChanged())
{
- auto *item = r->item(RAttrId);
... |
adds asn1 digests to +rs256 (WIP - still failing) | ::
++ rs256
|_ k=key:rsa
- ++ sign |=(m=@ (de:rsa (shax m) k))
+ ++ digest
+ |= m=@
+ ^- @
+ =/ pec=spec:asn1
+ :~ %seq
+ [%seq [%obj sha-256:obj:asn1] [%nul ~] ~]
+ [%oct (shax m)]
+ ==
+ (rep 3 ~(ren asn1 pec))
+ ::
+ ++ sign |=(m=@ (de:rsa (digest m) k))
+ ::
++ verify
|= [s=@ m=@]
- =((shax m) (en:rsa s k))
+ =((di... |
Removed some redundant settings from VS project file | </PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
- <AdditionalIncludeDirectories>src\common\mysql\include;src\common\mysql\lib\;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<CallingConvention>StdCall</CallingConvention>
<DebugInformationForma... |
Remove redefine macro | #define PRINT_STRING_MAX_LEN 4096
-/** Command for the emit function: copy string to output. */
-#define PRINT_CMD_COPY 0x00000000
-
-/** Command for the emit function: fill output with first character. */
-#define PRINT_CMD_FILL 0x00000001
-
/** Use upper case letters for hexadecimal format. */
#define PRINT_FLAG_UPPE... |
Component/bt: fix write char crash after disconnection | @@ -1845,7 +1845,7 @@ BOOLEAN L2CA_CheckIsCongest(UINT16 fixed_cid, UINT16 handle)
tL2C_LCB *p_lcb;
p_lcb = l2cu_find_lcb_by_handle(handle);
- if (p_lcb != NULL) {
+ if (p_lcb != NULL && p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL] != NULL) {
return p_lcb->p_fixed_ccbs[fixed_cid - L2CAP_FIRST_FIXED_CHNL]->co... |
spiffs: Explicitly indicate unused value | @@ -23,7 +23,7 @@ const char* TAG = "SPIFFS";
void spiffs_api_lock(spiffs *fs)
{
- xSemaphoreTake(((esp_spiffs_t *)(fs->user_data))->lock, portMAX_DELAY);
+ (void) xSemaphoreTake(((esp_spiffs_t *)(fs->user_data))->lock, portMAX_DELAY);
}
void spiffs_api_unlock(spiffs *fs)
|
Remove the line in the documentation about Visual Studio's default IDE value. | @@ -3,7 +3,6 @@ Enables the `Scan Sources for Module Dependencies` option for Visual Studio proj
```lua
scanformoduledependencies "value"
```
-If no value is set for a configuration, Visual Studio will default the option to `No`.
### Parameters ###
|
Uses brew install python2
'brew install python' used to pull in python 2
Now is pulls in python 3
This commit explictly uses python 2 | @@ -28,11 +28,7 @@ brew install go # Or get the latest from https://golang.org/dl/
brew install dep
# Installing python libraries
-brew install python
-cat >> ~/.bash_profile << EOF
-export PATH=/usr/local/opt/python/libexec/bin:\$PATH
-EOF
-source ~/.bash_profile
+brew install python2
pip install lockfile psi paramiko... |
in_tcp: use pack state byte position for buffer adjustment | @@ -77,7 +77,6 @@ int tcp_conn_event(void *data)
struct mk_event *event;
struct tcp_conn *conn = data;
struct flb_in_tcp_config *ctx = conn->ctx;
- jsmntok_t *t;
event = &conn->event;
if (event->mask & MK_EVENT_READ) {
@@ -127,11 +126,9 @@ int tcp_conn_event(void *data)
conn->buf_len--;
}
-
/* JSON Format handler */
ch... |
Updated instructions for cuda | @@ -107,14 +107,20 @@ Build and install from sources is possible. However, the source build for AOMP
- It is a bootstrapped build. The built and installed LLVM compiler is used to build library components.
- Additional package dependencies are required that are not required when installing the AOMP package.
-To build A... |
syspage: fix map's name relocation
JIRA: | @@ -178,6 +178,7 @@ void syspage_init(void)
do {
map->next = hal_syspageRelocate(map->next);
map->prev = hal_syspageRelocate(map->prev);
+ map->name = hal_syspageRelocate(map->name);
if (map->entries != NULL) {
map->entries = hal_syspageRelocate(map->entries);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.